Skip to content

Commit a81c6c7

Browse files
committed
Fix Dockerfile.dask-staging-local
1 parent f21e00a commit a81c6c7

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

.github/workflows/publish-binaries.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,13 @@ jobs:
292292
name: ${{ needs.services-adgs-whl.outputs.package_name }}
293293
path: ./build_context_path
294294

295-
- name: Copy layer-cleanup.sh script
296-
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh
295+
- name: Copy Dockerfile requirements
296+
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh ./.github/scripts/restore-apt.sh
297297
shell: bash
298298

299299
- name: Copy debug mode dependencies
300300
if: ${{ needs.set-env.outputs.debug_mode }} == true
301-
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh ./.github/scripts/restore-apt.sh
301+
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh
302302
shell: bash
303303

304304
- id: publish-docker
@@ -339,13 +339,13 @@ jobs:
339339
name: ${{ needs.services-prip-whl.outputs.package_name }}
340340
path: ./build_context_path
341341

342-
- name: Copy layer-cleanup.sh script
343-
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh
342+
- name: Copy Dockerfile requirements
343+
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh ./.github/scripts/restore-apt.sh
344344
shell: bash
345345

346346
- name: Copy debug mode dependencies
347347
if: ${{ needs.set-env.outputs.debug_mode }} == true
348-
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh ./.github/scripts/restore-apt.sh
348+
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh
349349
shell: bash
350350

351351
- id: publish-docker
@@ -386,13 +386,13 @@ jobs:
386386
name: ${{ needs.services-cadip-whl.outputs.package_name }}
387387
path: ./build_context_path
388388

389-
- name: Copy layer-cleanup.sh script
390-
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh
389+
- name: Copy Dockerfile requirements
390+
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh ./.github/scripts/restore-apt.sh
391391
shell: bash
392392

393393
- name: Copy debug mode dependencies
394394
if: ${{ needs.set-env.outputs.debug_mode }} == true
395-
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh ./.github/scripts/restore-apt.sh
395+
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh
396396
shell: bash
397397

398398
- id: publish-docker
@@ -432,13 +432,13 @@ jobs:
432432
name: ${{ needs.services-catalog-whl.outputs.package_name }}
433433
path: ./build_context_path
434434

435-
- name: Copy layer-cleanup.sh script
436-
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh
435+
- name: Copy Dockerfile requirements
436+
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh ./.github/scripts/restore-apt.sh
437437
shell: bash
438438

439439
- name: Copy debug mode dependencies
440440
if: ${{ needs.set-env.outputs.debug_mode }} == true
441-
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh ./.github/scripts/restore-apt.sh
441+
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh
442442
shell: bash
443443

444444
- id: publish-docker
@@ -478,13 +478,13 @@ jobs:
478478
run: cp ./services/frontend/.github/entrypoint_frontend.sh ./build_context_path
479479
shell: bash
480480

481-
- name: Copy layer-cleanup.sh script
482-
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh
481+
- name: Copy Dockerfile requirements
482+
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh ./.github/scripts/restore-apt.sh
483483
shell: bash
484484

485485
- name: Copy debug mode dependencies
486486
if: ${{ needs.set-env.outputs.debug_mode }} == true
487-
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh ./.github/scripts/restore-apt.sh
487+
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh
488488
shell: bash
489489

490490
- id: publish-docker
@@ -525,13 +525,13 @@ jobs:
525525
name: ${{ needs.services-staging-whl.outputs.package_name }}
526526
path: ./build_context_path
527527

528-
- name: Copy layer-cleanup.sh script
529-
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh
528+
- name: Copy Dockerfile requirements
529+
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh ./.github/scripts/restore-apt.sh
530530
shell: bash
531531

532532
- name: Copy debug mode dependencies
533533
if: ${{ needs.set-env.outputs.debug_mode }} == true
534-
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh ./.github/scripts/restore-apt.sh
534+
run: cp -t ./build_context_path ./.github/scripts/git_debug_image.sh
535535
shell: bash
536536

537537
- id: publish-docker
@@ -572,8 +572,8 @@ jobs:
572572
name: ${{ needs.services-staging-whl.outputs.package_name }}
573573
path: ./build_context_path
574574

575-
- name: Copy layer-cleanup.sh script
576-
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh
575+
- name: Copy Dockerfile requirements
576+
run: cp -t ./build_context_path ./.github/scripts/layer-cleanup.sh ./.github/scripts/restore-apt.sh
577577
shell: bash
578578

579579
- id: publish-docker

services/staging/.github/Dockerfile.dask-staging-local

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ ARG USER=dask:dask
2222
# Install dependencies for compilation
2323
USER root
2424

25-
COPY ./layer-cleanup.sh /usr/local/bin/
26-
RUN chmod 755 /usr/local/bin/layer-cleanup.sh
25+
COPY ./layer-cleanup.sh ./restore-apt.sh /usr/local/bin/
26+
RUN chmod 755 /usr/local/bin/layer-cleanup.sh /usr/local/bin/restore-apt.sh
2727

28-
RUN apt update && apt upgrade -y && apt install -y libpq-dev gcc git && layer-cleanup.sh
28+
RUN restore-apt.sh && apt update && apt upgrade -y && apt install -y libpq-dev gcc git && layer-cleanup.sh
2929
USER $USER
3030

3131
# The CI builds the wheel packages, downloads them into ./whl/, then builds this Dockerfile from ./whl/,
@@ -53,7 +53,7 @@ USER root
5353
RUN apt autoremove -y gcc git && layer-cleanup.sh
5454

5555
# Install dependencies necessary for execution not compilation
56-
RUN apt install -y libexpat1 && layer-cleanup.sh
56+
RUN restore-apt.sh && apt install -y libexpat1 && layer-cleanup.sh
5757

5858
USER $USER
5959

0 commit comments

Comments
 (0)