genevaers / Workbench

GenevaERS Workbench
Apache License 2.0
3 stars 2 forks source link

Workbench Demo/Docker progress for R&D Work #48

Open KipTwitchell opened 2 years ago

KipTwitchell commented 2 years ago

Today, Neil and I remembered what work we had done for workbench on Docker progress:

Here is the docker image pushed to docker hub, with postgres and the demo data installed. This needs to be tested on a new machine. https://hub.docker.com/repository/docker/ktwitchell001/genevaers https://hub.docker.com/layers/205777161/ktwitchell001/genevaers/genevaers_pe-demo0.1/images/sha256-d5ef38f176d7d5b6db66bfee8bf5cb5dc0572e88a48962d5ae991bb0caf63e04?context=repo

Suggested command to add it to your docker library is "ADD file:16dc2c6d1932194edec28d730b004fd6deca3d0f0e1a07bc5b8b6e8a1662f7af in /"

KipTwitchell commented 2 years ago

results of testing today:

KipTwitchell commented 2 years ago

Using @hammyau 's suggested link, we have started trying to use Colima: https://opensource.com/article/22/9/docker-desktop-colima?utm_medium=Email&utm_campaign=weekly&sc_cid=7013a0000038AIXAA2

I deleted Docker Desktop, but did not attempt to uninstall Docker Engine, which Colima needs. Colima can use Podman, which would be an alternative to Docker if we wanted.

  1. Using the instructions in that page I have (on my Mac) installed Colima using Homebrew "brew install colima"
  2. "ddev poweroff (just to be safe)" result was ddev command not found. We moved forward. might have been install still progressing problem.
  3. "Next, start Colima with 'colima start'" This gave command that docker not found. Attempted 'brew upgrade docker" and got messages on required Xcode modules that are being installed.

Questions raised were if Dockerfile is being used for the docker image control, where on my PC is that file, and how do we control source code for building the demo system if we get this to work.

KipTwitchell commented 2 years ago

Was able to get past the install issues above. Continued with the steps in this site: https://smallsharpsoftwaretools.com/tutorials/use-colima-to-run-docker-containers-on-macos/ including:

  1. 'brew install docker docker-compose'
  2. 'mkdir -p ~/.docker/cli-plugins'
  3. 'ln -sfn $(brew --prefix)/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose'
  4. 'docker compose'
  5. 'colima start'
  6. 'Docker pull ktwitchell001/genevaers:genevaers_pe-demo0.1'
KipTwitchell commented 2 years ago

Oct 28th progress:

Did not solve the firewall container issue. But we did successfully download the docker GenevaERS Postgres container, and started it, using the following command: `Docker run -p:5432:5000 ktwitchell001/genevaers:genevaers_pe-demo0.1'

Next attempt to go further in networking configuration with this set of commands: 1 sudo docker inspect -f '{{ .NetworkSettings.Gateway }}' This command did not work for us. Instead we used this command, but that probably gives us the wrong IP address: docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id Results of this today was: 127.0.0.1 localhost

  1. sudo docker exec -it [container] /bin/bash
  2. $ sudo vim /etc/hosts 192.168.5.1 localhost