-
Notifications
You must be signed in to change notification settings - Fork 4
Docker Setup
Matthew Logan edited this page Nov 7, 2024
·
3 revisions
Tip
InvasivesBC is Equipped with Docker images to run in local environments. Here is a few small steps to get containers running locally
[ Fig 1. Docker images running ]
- Copy the sample into a new
.env
file and populate the values. Some defaults are already assigned to the docker-compose. - In your CLI, run
make docker
ordocker-compose -f docker-compose.local.yml watch
from the root folder
- Login to PGAdmin from localhost:5050 and login with the default values user:
admin@invasives.com
, pwd:admin
. - Create a database connection by going to
Object Explorer
-> right-clickServers
->Register
->Server
.
Fill out the Registration page, as follows
[ Fig 2. General Settings]
[ Fig 3. Connection Settings ]
You should now be connected to your database. If issues persist, cross reference your .env
file.
- From the Server list in PGAdmin, go to
Servers
->{Connection Name}
->Databases
->invasivesbc
->tables
-> right-clickuser_role
->View/Edit Data
->All Rows
- Find the row with
role_id: 18
, change its value to an unused value and save. - Find role_description
Master Administrator
change itsrole_id
to18
and save. - Go to localhost:3000, sign-in using your IDIR then
Request Access
[ Fig 4. Request Access ]
- Populate the fields and submit your request.
- Return to your PGAdmin instance.
- From the table
access_request
, set columnstatus
toAPPROVED
, save.
[ Fig 5. Status column set to APPROVED ]
- Go to table
application_user
, setactivation_status
to1
, save.
[ Fig 6. activation_status column set to 1 ]
- Go to table
user_access
, add a new row with the following values, save.
[ Fig 7. New user_access row]
Your Docker containers are now setup and you can continue using the application!