• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using MariaDB on NetPi
#1
Hello,

I have only recently received our Netpi and we would like to start testing our product. Please forgive me as I am quite new to docker. 

I currently have a python program that runs on my PC that records information and saves it in a MariaDB database and is replicated on Azure cloud services. How do I go about getting this to run on a Rasp Pi or Netpi. 

The steps I have completed so far on Rasp Pi.

I have installed Raspbian Buster from image as per instructions on [/url][url=https://www.raspberrypi.org/documentation/installation/installing-images/]RaspberryPi.

Completed: 


Code:
sudo apt-get update
sudo apt-get -upgrade

curl -sSL https://get.docker.com | sh

sudo docker pull hilschernetpi/netpi-raspbian

Is this the correct image to be using for development on a rasppi? in the netiot FAQ it suggests using "resin/armv7hf-debian:jessie-20170916" however this is very old and I require debian buster as it allows MariaDB 10.3 to be installed.  Also resin states 'This repository is deprecated'

Once that image is installed what is the correct way to create a container?


On the NetPi,

I have followed the instruction video on creating the first container using raspbian as an example. 

I have the container running and am able to connect through putty.

I completed the following commands inside the container


Code:
sudo apt-get update
sudo apt-get -upgrade
sudo apt-get install mariadb-server



I now have the mariadb server running. How can I access this from outside of the container. How do I link the IP and Port to within the container?

I believe I may have missed a few key points but I can answer anything else as needed.
  Reply


Messages In This Thread
Using MariaDB on NetPi - by philump - January-7th-2020, 05:52 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-7th-2020, 07:50 AM
RE: Using MariaDB on NetPi - by philump - January-7th-2020, 10:04 PM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 07:42 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 07:55 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 08:06 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 08:12 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-7th-2020, 08:29 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-7th-2020, 08:46 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 07:27 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 08:21 AM
RE: Using MariaDB on NetPi - by philump - January-8th-2020, 11:52 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 12:14 PM
RE: Using MariaDB on NetPi - by philump - January-8th-2020, 09:41 PM
RE: Using MariaDB on NetPi - by philump - January-9th-2020, 12:01 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-9th-2020, 06:36 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-9th-2020, 06:39 AM
RE: Using MariaDB on NetPi - by philump - January-10th-2020, 07:17 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-10th-2020, 07:51 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-10th-2020, 07:57 AM
RE: Using MariaDB on NetPi - by philump - January-13th-2020, 02:55 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-13th-2020, 06:47 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)