Skip to content

Commit

Permalink
Update gitpod dockerfile for mariadb and python3.11
Browse files Browse the repository at this point in the history
Remove duplicate install steps in gitpod.yml
  • Loading branch information
mrchrisadams committed May 10, 2024
1 parent 919c483 commit e21d815
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
13 changes: 7 additions & 6 deletions .gitpod.dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
FROM gitpod/workspace-python

# install Redis - we might not need ot remove the apt-lists bit


RUN sudo apt-get update && sudo apt-get install -y build-essential libmariadb-dev libmariadbclient-dev libmariadb3 mariadb-client mariadb-common && sudo rm -rf /var/lib/apt/lists/*
# install Mariadb
RUN sudo apt-get update \
&& sudo apt-get install -y \
build-essential \
libmariadb-dev libmariadb-dev-compat \
mariadb-client mariadb-common \
&& 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/*

# https://www.gitpod.io/docs/introduction/languages/python
RUN pyenv install 3.11 \
&& pyenv global 3.11

RUN python -m pip install --upgrade pip uv
4 changes: 0 additions & 4 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ tasks:
- name: main terminal
init: |
cp ./.env.gitpod ./.env
# upgrade pyenv to use recent version of python
cd /home/gitpod/.pyenv/plugins/python-build/../.. && git pull && cd -
pyenv install 3.11.9
pyenv global 3.11.9
python -m venv .venv
source .venv/bin/activate
mysqladmin create greencheck
Expand Down

0 comments on commit e21d815

Please sign in to comment.