-
-
Notifications
You must be signed in to change notification settings - Fork 1
Installation using Docker
matamorphosis edited this page Jan 31, 2022
·
5 revisions
PLEASE FOLLOW CAREFULLY AS THERE IS INFORMATION PRINTED IN THE TERMINAL THAT WILL NEED TO BE RETAINED
Docker automates almost the entire installation process and doesn't give you the choice of OS, Ubuntu 20.04 is the current distribution used.
This guide assumes you have docker installed on your system already and know the essentials of docker and how its virtualised environments work.
- It is recommended that you change configuration for things like API keys, via the "Edit Inputs", "Edit Outputs", and "Edit Core" functions on the settings page.
- For those that are new to docker, running "docker run..." creates a new container, so all changes will be lost after the build. Use "docker attach" to not overwrite changes.
- Unlike the regular installation of Google Drive Access Governance, the IP address displayed on run is not the IP address you access GDAG from. This is because GDAG is running in a Docker container on your host in a virtualised network. This network uses network address translation (NAT) and the
docker run
command below maps the internal port 5000 in your virtualised environment to port 5000 on your host so you can access it. You need to access GDAG using the NAT IP address. If running Docker on a Linux host you can use theifconfig
or theip addr
command to find the Docker IP address on your host, that will be the IP address used to access GDAG.
- Navigate to the package link here, and follow the command displayed under "Install from the command line", for reference the command is listed below:
user@linux:~$ docker pull ghcr.io/matamorphosis/gdag:latest
- As the package is pre-built, bring up the container using the
docker run
command.
user@linux:~$ docker run -p 8080:8080 -p 8000:8000 ghcr.io/matamorphosis/gdag:latest
- Find your docker container's IP address through using either the
ifconfig
oripconfig
command. Then navigate to https://:5000, accept the certificate (if using self-signed), and log in with the useradmin
and the password provided to you in the previous step.
- If not done already, navigate to the Docker Installation directory
user@linux:~$ cd GDAG/installation/docker
- Bring up container using the following command.
user@linux:/<PATH-TO-GDAG>/installation/docker$ docker-compose up
- Find your docker container's IP address through using either the
ifconfig
oripconfig
command. Then navigate to https://:5000, accept the certificate (if using self-signed), and log in with the useradmin
and the password provided to you in the previous step.
- If not done already, navigate to the Docker Installation directory
user@linux:~$ cd GDAG/installation/docker
- Build the docker image
user@linux:/<PATH-TO-GDAG>/installation/docker$ docker build -t gdag/latest .
- Run the container.
user@linux:~$ docker run -p 5000:5000 gdag/latest
- Find your docker container's IP address through using either the
ifconfig
oripconfig
command. Then navigate to https://:5000, accept the certificate (if using self-signed), and log in with the useradmin
and the password provided to you in the previous step.