Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

docker github action test #325

Closed
wants to merge 6 commits into from

Conversation

acloudiator
Copy link
Contributor

Docker github action to test the build based with event trigger

@@ -9,7 +9,8 @@ FROM ubuntu:18.04 AS builder

ARG DEFAULT_MODE=default
ENV MODE=$DEFAULT_MODE
RUN --mount=target=/polycube cp -r /polycube /tmp/polycube && cd /tmp/polycube && \
COPY /polycube/ /tmp/polycube
Copy link
Contributor

@smagnani96 smagnani96 Aug 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be COPY . /tmp/polycube/? I'm scared that COPY /polycube/ ... fails because, when building, the process is already inside the directory.
RUN --mount=target=/polycube was used to already mount the current directory to /polycube. If we want to use COPY then it should be fixed

run: |
pwd
cd ..
ls -ltr
Copy link
Contributor

@smagnani96 smagnani96 Sep 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try also by adding export DOCKER_BUILDKIT=1 in this file, before the build command

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buildkit doesn't seems to be supported by github action. We need to get rid of this mount, last time I checked it was an experimental feature.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found this discussion docker-archive/github-actions#12 (comment) where somebody said that DOCKER_BUILDKIT is supported on Github Actions. I do not know if it is true or not, but maybe we could try to insert env: DOCKER_BUILDKIT:1 as reported in this yml file https://github.com/docker/github-actions/blob/826b584752ffa6abc1a2d94da26f348e3e4f73d0/.github/workflows/main.yml#L26

test with buildkit
@acloudiator acloudiator added this to the v.0.11.0 milestone Oct 4, 2020
@acloudiator acloudiator changed the base branch from master to release/v0.11.0 November 4, 2020 17:06
@frisso
Copy link
Contributor

frisso commented Apr 6, 2021

Superseded by #364

@frisso frisso closed this Apr 6, 2021
@frisso frisso deleted the docker-github-action-test branch April 6, 2021 07:19
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants