Skip to content

Commit

Permalink
more pinned versions
Browse files Browse the repository at this point in the history
  • Loading branch information
aretasg authored and aretasg committed Oct 2, 2023
1 parent c7a5dae commit bdfcc11
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@ jobs:
build-linux:

runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v2
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies & package
run: |
conda env update --file environment.yml --name base
pip install .
- name: create environment with mamba
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: 22.11.1
auto-activate-base: false
activate-environment: pacpac
environment-file: environment.yml
- name: Lint with flake8
run: |
conda install flake8
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM frolvlad/alpine-miniconda3 as build
FROM frolvlad/alpine-miniconda3:python3.7 as build

WORKDIR pacpac
COPY environment.yml setup.py ./
Expand All @@ -14,7 +14,7 @@ ENV PATH /opt/conda/envs/pacpac/bin:$PATH
RUN pip install .

########## conda-pack bit to reduce image size
RUN conda install conda-pack
RUN conda install conda-pack==0.6.0

# Use conda-pack to create a standalone enviornment in /venv
RUN conda-pack -n pacpac -o /tmp/env.tar && \
Expand All @@ -25,7 +25,7 @@ RUN conda-pack -n pacpac -o /tmp/env.tar && \
RUN /venv/bin/conda-unpack
##########

FROM debian:buster AS runtime
FROM debian:buster-20230919 AS runtime

# Copy /venv from the previous stage
COPY --from=build /venv /venv
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ dependencies:
- pandarallel==1.5.2
- pyfiglet==0.8.post1
- typer==0.3.2
- protobuf==3.20
- protobuf==3.20

0 comments on commit bdfcc11

Please sign in to comment.