-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add images for diracx/base, diracx/services-base and diracx/client-base
- Loading branch information
Showing
9 changed files
with
218 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM mambaorg/micromamba:latest | ||
|
||
# Copying in ENTRYPOINT script and environment specification | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml dirac_dependencies.yml /tmp/ | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER entrypoint.sh / | ||
RUN chmod 755 /entrypoint.sh | ||
|
||
RUN micromamba install --freeze-installed --yes --file /tmp/environment.yml --name=base && \ | ||
micromamba install --freeze-installed --yes --file /tmp/dirac_dependencies.yml --name=base && \ | ||
micromamba clean --all --yes --force-pkgs-dirs && \ | ||
rm -rf /tmp/environment.yml /tmp/dirac_dependencies.yml | ||
|
||
ARG MAMBA_DOCKERFILE_ACTIVATE=1 | ||
|
||
# In many clusters the container is ran as a random uid for security reasons. | ||
# If we mark the conda directory as group 0 and give it group write permissions | ||
# then we're still able to manage the environment from inside the container. | ||
USER 0 | ||
RUN chown -R $MAMBA_USER:0 /opt/conda && chmod -R g=u /opt/conda | ||
USER $MAMBA_USER | ||
|
||
ENTRYPOINT [ "/entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This yaml file contains the list of DIRAC dependencies that must be satisfied | ||
# even if we won't need it. For example, gfal2 needs to be installed in order to | ||
# be able to install DIRAC, even in the services. | ||
# These dependencies are separated from the main environment.yml in the hope that | ||
# we can one day remove entirely this file | ||
|
||
name: diracx | ||
channels: | ||
- diracgrid | ||
- conda-forge | ||
- nodefaults | ||
dependencies: | ||
- aiobotocore | ||
- boto3 | ||
- botocore | ||
- db12 | ||
- diraccfg | ||
- dominate | ||
- fts3 | ||
- importlib-metadata | ||
- m2crypto >=0.38.0 | ||
- pexpect | ||
- prompt-toolkit | ||
- psutil | ||
- pyasn1-modules | ||
- pyparsing | ||
- python-gfal2 | ||
- pytz | ||
- rucio-clients |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
eval "$(micromamba shell hook --shell=posix)" | ||
micromamba activate base | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: diracx | ||
channels: | ||
- diracgrid | ||
- conda-forge | ||
- nodefaults | ||
dependencies: | ||
- cachetools | ||
# Needed because coverage runs inside the image | ||
# when doing the integration tests | ||
- coverage | ||
- git | ||
- gitpython | ||
- httpx | ||
- pip | ||
- pydantic =1.10.10 | ||
- python =3.11 | ||
- pyyaml | ||
- requests | ||
- urllib3 <2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ghcr.io/diracgrid/diracx/base | ||
|
||
|
||
# Copying in ENTRYPOINT script and environment specification | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/ | ||
|
||
RUN micromamba install --freeze-installed --yes --file /tmp/environment.yml --name=base && \ | ||
micromamba clean --all --yes --force-pkgs-dirs && \ | ||
rm -rf /tmp/environment.yml | ||
|
||
|
||
# In many clusters the container is ran as a random uid for security reasons. | ||
# If we mark the conda directory as group 0 and give it group write permissions | ||
# then we're still able to manage the environment from inside the container. | ||
USER 0 | ||
RUN chown -R $MAMBA_USER:0 /opt/conda && chmod -R g=u /opt/conda | ||
USER $MAMBA_USER | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: diracx | ||
channels: | ||
- diracgrid | ||
- conda-forge | ||
- nodefaults | ||
dependencies: | ||
- aiohttp | ||
- azure-core | ||
- cachetools | ||
- python-dotenv | ||
- python-multipart | ||
- rich | ||
- typer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ghcr.io/diracgrid/diracx/base | ||
|
||
|
||
# Copying in ENTRYPOINT script and environment specification | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/ | ||
|
||
RUN micromamba install --freeze-installed --yes --file /tmp/environment.yml --name=base && \ | ||
micromamba clean --all --yes --force-pkgs-dirs && \ | ||
rm -rf /tmp/environment.yml | ||
|
||
|
||
# In many clusters the container is ran as a random uid for security reasons. | ||
# If we mark the conda directory as group 0 and give it group write permissions | ||
# then we're still able to manage the environment from inside the container. | ||
USER 0 | ||
RUN chown -R $MAMBA_USER:0 /opt/conda && chmod -R g=u /opt/conda | ||
USER $MAMBA_USER | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: diracx | ||
channels: | ||
- diracgrid | ||
- conda-forge | ||
- nodefaults | ||
dependencies: | ||
- authlib | ||
- aiomysql | ||
- aiosqlite | ||
- email-validator | ||
- fastapi | ||
- isodate | ||
- opensearch-py | ||
- pyjwt | ||
- coverage | ||
- python-dotenv | ||
- python-jose | ||
- python-multipart | ||
- sqlalchemy | ||
- uvicorn | ||
- aiobotocore | ||
- botocore |