Docker QA setup instructions part 2
Instructions if you already have the project downloaded from gitlab.
for engineers: make sure to stop your local postgres running on localhost:5432
You might need to give your Docker more CPU and Memory if you want it to run faster: https://www.useloom.com/share/b3b569f8b64d4346a7234b7fd592b54a
Next step will be running following commands in the project's folder. If you don't have project:
git clone [email protected]:powr/powr.git in your work folder
docker-compose run web bash docker_development/docker_post_install.sh - this runs the installation and also adds missing simple copies, general copies and app details to the database. (takes around 10-15 minutes to run)
run docker-compose down when it's done.
How to create an Admin user:
open any text editor and copy the following code, change the email and the password (if you want), it will be used only on this computer, so you can use simple passwords like 12345678
admin = Role.find_or_create_by(name: "admin")
# put your email and password here
u = User.new(email:"[email protected]", password: "12345678")
u.roles << admin
u.save
Run docker-compose run web rails console to open a rails console. Paste the code and hit enter. This will create a user with given email and password and make him an admin.
Run exit when you are done and docker-compose down to stop all docker containers.
Starting the project:
docker-compose up will take more time to start this time because we got rid of chunking, but deployment without chunking saves us money :D
It will "freeze" like this for a while (5-10 minutes), but don't worry, it is doing something.

Open https://0.0.0.0:3002 and https://localhost:3000 after terminal prints a lot of shit like this:

To stop the project run docker-compose down in another Terminal tab in the project folder.
If you are an engineer, make sure to start your local postgres running on localhost:5432