We use multipass to setup the dev environment. Bellow are the optional steps if you are not using multipass
- run
multipass launch --name edlib -c 4 -m 16G -d 40G
. If you forget to set disk size you can update it using the following commandsudo qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/edlib/ubuntu-20.04-server-cloudimg-amd64.img +20G
- run
multipass mount <path of edlib folder> edlib:/home/ubuntu/Edlib
. Remember to change "path of edlib folder" with the actuall folder where edlib is located - run
multipass shell edlib
You now have a running shell ready for the setup. You can proceed to the next step.
All commands bellow must be run from the base directory of edlib.
- Run (VM)
ssh-keygen
and add the public keys to your bitbucket(only Cerpus employees) and github account - run (VM)
./scripts/first-time-setup.sh
. You can proceed to the next step while this runs - run (HOST)
multipass exec edlib -- ip -br address show scope global
if you are using multipass to get the IP of the VM - run (HOST)
./update-host-file.sh <VM-IP>
to create host file entries for edlib on your host - After the script on step 1 is done, log out and in so that all changes take effect
- Run (VM)
dcu
to start docker-compose.dcu
is an alias fordocker-compose up -d
- Run (VM)
./update-certs.sh
to install the newly generated certificates inside the VM.