Skip to content
Snippets Groups Projects
Commit f48aa30b authored by Thibaut DE SAIVRE's avatar Thibaut DE SAIVRE
Browse files

Merge branch 'deployment-configuration' into 'master'

Deployment configuration

See merge request !1
parents 8ffa6dfb 9d82ca53
No related branches found
No related tags found
1 merge request!1Deployment configuration
Showing
with 194 additions and 0 deletions
# Ignore python venv
venv
# Ignore python cache
__pycache__
\ No newline at end of file
# TODO : cache python dependencies during build
variables:
IMAGE_TAG: registry.binets.fr/maxime.basse/psc-musique
stages:
- ship
- deploy
ship:
stage: ship
image: docker:latest
only:
- stable
services:
# Run docker inside gitlab docker runners
- docker:dind
variables:
# Needed in order to access the docker daemon because this runner is inside docker
DOCKER_HOST: tcp://docker:2375
# Needed to run docker inside docker
DOCKER_DRIVER: overlay2
# For disabling TLS in docker-in-docker (mandatory!)
DOCKER_TLS_CERTDIR: ""
script:
# Login to gitlab registry
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD registry.binets.fr/maxime.basse/psc-musique
# Pull latest image to use as cache
- docker pull registry.binets.fr/maxime.basse/psc-musique:latest
# Build docker image using the latest as cache
- docker build --pull --cache-from registry.binets.fr/maxime.basse/psc-musique:latest -t registry.binets.fr/maxime.basse/psc-musique .
# Push the docker image to the registry
- docker push registry.binets.fr/maxime.basse/psc-musique
deploy:
stage: deploy
only:
- stable
when: manual
# Variables for br docker services
variables:
PROJECT: jazzbot
DOCKER_IMAGE: registry.binets.fr/maxime.basse/psc-musique:latest
# Trigger br docker services deployment
trigger:
project: br/docker-services
FROM python:3.9.16-slim-bullseye
# Set the working directory to /JazzBot
WORKDIR /app
# Install python dependencies (first, in order to cache them)
COPY requirements.txt /app
RUN pip install --no-cache-dir -r requirements.txt
# Copy JazzBot contents to /app
COPY ./JazzBot /app
# Expose port 8501 for Streamlit app
EXPOSE 8501
# Run app.py when the container launches
CMD ["streamlit", "run", "app.py"]
\ No newline at end of file
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
aiohttp==3.8.4
aiosignal==1.3.1
altair==4.2.2
anyio==3.6.2
arrow==1.2.3
async-timeout==4.0.2
attrs==23.1.0
beautifulsoup4==4.12.2
blessed==1.20.0
blinker==1.6.2
cachetools==5.3.0
certifi==2022.12.7
chardet==5.1.0
charset-normalizer==3.1.0
click==8.1.3
cmake==3.26.3
contourpy==1.0.7
croniter==1.3.14
cycler==0.11.0
dateutils==0.6.12
decorator==5.1.1
deepdiff==6.3.0
entrypoints==0.4
fastapi==0.88.0
filelock==3.12.0
fonttools==4.39.3
frozenlist==1.3.3
fsspec==2023.4.0
gitdb==4.0.10
GitPython==3.1.31
h11==0.14.0
idna==3.4
importlib-metadata==6.5.0
importlib-resources==5.12.0
inquirer==3.1.3
itsdangerous==2.1.2
Jinja2==3.1.2
joblib==1.2.0
jsonpickle==3.0.1
jsonschema==4.17.3
kiwisolver==1.4.4
lightning==2.0.1.post0
lightning-cloud==0.5.33
lightning-utilities==0.8.0
lit==16.0.1
markdown-it-py==2.2.0
MarkupSafe==2.1.2
matplotlib==3.7.1
mdurl==0.1.2
more-itertools==9.1.0
mpmath==1.3.0
multidict==6.0.4
music21==8.1.0
networkx==3.1
numpy==1.24.2
nvidia-cublas-cu11==11.10.3.66
nvidia-cuda-cupti-cu11==11.7.101
nvidia-cuda-nvrtc-cu11==11.7.99
nvidia-cuda-runtime-cu11==11.7.99
nvidia-cudnn-cu11==8.5.0.96
nvidia-cufft-cu11==10.9.0.58
nvidia-curand-cu11==10.2.10.91
nvidia-cusolver-cu11==11.4.0.1
nvidia-cusparse-cu11==11.7.4.91
nvidia-nccl-cu11==2.14.3
nvidia-nvtx-cu11==11.7.91
ordered-set==4.1.0
packaging==23.1
pandas==1.5.3
Pillow==9.5.0
protobuf==3.20.3
psutil==5.9.5
pyarrow==11.0.0
pydantic==1.10.7
pydeck==0.8.1b0
Pygments==2.15.1
PyJWT==2.6.0
Pympler==1.0.1
pyparsing==3.0.9
pyrsistent==0.19.3
python-dateutil==2.8.2
python-editor==1.0.4
python-multipart==0.0.6
pytorch-lightning==2.0.1.post0
pytz==2023.3
pytz-deprecation-shim==0.1.0.post0
PyYAML==6.0
readchar==4.0.5
requests==2.28.2
rich==13.3.4
six==1.16.0
smmap==5.0.0
sniffio==1.3.0
soupsieve==2.4.1
starlette==0.22.0
starsessions==1.3.0
streamlit==1.21.0
sympy==1.11.1
toml==0.10.2
toolz==0.12.0
torch==2.0.0
torchaudio==2.0.1
torchdata==0.6.0
torchmetrics==0.11.4
torchtext==0.15.1
torchvision==0.15.1
tornado==6.3
tqdm==4.65.0
traitlets==5.9.0
triton==2.0.0
typing_extensions==4.5.0
tzdata==2023.3
tzlocal==4.3
urllib3==1.26.15
uvicorn==0.21.1
validators==0.20.0
watchdog==3.0.0
wcwidth==0.2.6
webcolors==1.13
websocket-client==1.5.1
websockets==11.0.2
yarl==1.8.2
zipp==3.15.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment