Skip to content

Commit

Permalink
resolve merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchrisadams committed May 10, 2024
1 parent bc2967e commit cf649ad
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .env.gitpod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ PORT=9000

PYTHONDONTWRITEBYTECODE=1

# drop into ipdb when breakpoint() is called
PYTHONBREAKPOINT="ipdb.set_trace"

SECRET_KEY='some-key'
DATABASE_URL=mysql://root@127.0.0.1:3306/greencheck
DATABASE_URL_READ_ONLY=mysql://root:deploy@127.0.0.1:3306/greencheck
DATABASE_URL_READ_ONLY=mysql://root@127.0.0.1:3306/greencheck
EXPLORER_TOKEN="some-token"
MAILGUN_API_KEY="50 characters long-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Expand Down
9 changes: 6 additions & 3 deletions .gitpod.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ RUN sudo apt-get update \
&& sudo rm -rf /var/lib/apt/lists/*

# install RabbitMQ
RUN sudo apt-get update && sudo apt-get install rabbitmq-server -y --fix-missing && sudo rm -rf /var/lib/apt/lists/*
RUN sudo apt-get update \
&& sudo apt-get install rabbitmq-server -y --fix-missing \
&& sudo rm -rf /var/lib/apt/lists/*

# https://www.gitpod.io/docs/introduction/languages/python
# Install the correct version of python
RUN pyenv install 3.11 \
&& pyenv global 3.11

# install a copy of node js
# install a recent version of Node.js for front end work
RUN wget https://deb.nodesource.com/setup_18.x -O /tmp/setup_18.x.sh
RUN sudo bash /tmp/setup_18.x.sh
RUN sudo apt-get install nodejs -y
RUN sudo apt-get install -y nodejs
10 changes: 10 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ tasks:
dotenv run -- ./manage.py collectstatic --no-input
command: ls

- name: mariadb
command: >
docker run
--rm
--hostname green-mariadb
--publish 3306:3306
--env MARIADB_DATABASE=greencheck
--env MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=True
mariadb:10.11
- name: rabbitmq
command: >
docker run
Expand Down

0 comments on commit cf649ad

Please sign in to comment.