SIMON container, using local in-container file-system
2.3K
Directory ./base_image contains scripts necessary to create parent docker image.
Usage:
LANG=en_US.UTF-8 sudo ./make_image.sh
Command pre-installs basic genular dependencies from a Debian distribution and compile custom image out of it, that is than used latter on in Dockerfile.
After build is finished using ./make_image.sh image will be compressed inside ./base_image/images directory.
Command: Replace FILE_NAME with actual filename.
sudo cat ./FILE_NAME.tar | sudo docker import - genular/parent:master
Check if image is properly imported
## List all images
docker image ls -a
cat ~/my_password.txt | docker login --username foo --password-stdin
docker push genular/parent:master
rclone copy ./genular.tar genular-spaces:genular/docker-parent-images
Auto-build is configure on Docker Hub. Whenever new change is detected in repository container genular/simon:latest will be build-ed automatically.
To do it manually first build docker image from Dockerfile:
You can get example of configuration JSON by executing following command
cd simon-backend/server/backend && composer generate-docker-config
This will create a new file: documentation/docker_images/configuration.json where you can add/remove custom configuration variables and place it in ./configuration.example.json
Remove --network=host if needed.
docker build --no-cache --network=host --tag "genular/simon:latest" --file ./Dockerfile .
In order to run a test instance of SIMON we first need to prepare the environment.
If you finished installing docker please continue.
Lets pull the genular/simon image from Docker Hub. Then we will run a docker container with appropriately mounted volumes and port mapping. By default the container would run with a local file-system inside of it.
After you installed docker and its running, please open your favorite Terminal and run the command below.
If on Windows - open Windows Power Shell
If you wish to get correct time, replace TZ= with your timezone. You can find list of supported timezones here
# Important: if you are using Windows replace newline separators in the command: "\" with "`"
# To use custom directory as file-system backend: --volume /mnt/genular/simon-backend/SHARED_DATA:/mnt/usrdata \
docker run --rm --network=host \
--detach \
--name genular \
--tty \
--interactive \
--env IS_DOCKER='true' \
--env TZ=America/Los_Angeles \
--volume genular_data:/mnt/usrdata \
--publish 3010:3010 \
--publish 3011:3011 \
--publish 3012:3012 \
--publish 3013:3013 \
genular/simon:latest
Once command is executed and the container is started you can open SIMON on http://localhost:3010 and create your account.
To publish it on Docker Hub use same steps as above.
docker exec -it genular /bin/bashdocker psdocker stop genulardocker rmi IMAGE_IDdocker system prune -adocker volume rm genular_dataContent type
Image
Digest
sha256:ba443e420…
Size
3.5 GB
Last updated
almost 4 years ago
docker pull genular/simon