Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Adjust repo to be buildable via builder image #10

Closed
tumido opened this issue Aug 23, 2021 · 0 comments · Fixed by #11
Closed

Adjust repo to be buildable via builder image #10

tumido opened this issue Aug 23, 2021 · 0 comments · Fixed by #11
Assignees

Comments

@tumido
Copy link
Member

tumido commented Aug 23, 2021

Steps to reproduce:

  1. Build the builder image locally
$ podman build -t builder .
[1/2] STEP 1/1: FROM quay.io/operate-first/opf-toolbox:v0.4.2 AS toolbox
--> f1698375fd2
[2/2] STEP 1/5: FROM quay.io/thoth-station/s2i-custom-py38-notebook:v0.3.2
[2/2] STEP 2/5: ENV XDG_DATA_HOME=/usr/share/.local/share     XDG_CACHE_HOME=/usr/share/.cache     XDG_CONFIG_HOME=/usr/share/.config
--> 3445bf5a511
[2/2] STEP 3/5: ENV KUSTOMIZE_PLUGIN_PATH=$XDG_CONFIG_HOME/kustomize/plugin/
--> 7b19efc41fd
[2/2] STEP 4/5: COPY --from=toolbox /usr/local/bin /usr/local/bin
--> b5a492b7f53
[2/2] STEP 5/5: COPY --from=toolbox $KUSTOMIZE_PLUGIN_PATH/viaduct.ai/v1/ksops $KUSTOMIZE_PLUGIN_PATH/viaduct.ai/v1/ksops
[2/2] COMMIT builder
--> 064d1dd6484
Successfully tagged localhost/builder:latest
  1. Try building the repo with it
$ s2i build . builder --as-dockerfile /tmp/build/Dockerfile
Application dockerfile generated in /tmp/build/Dockerfile

$ cd /tmp/build

$ podman build -t test .
STEP 1/8: FROM builder
STEP 2/8: LABEL "io.openshift.s2i.build.commit.date"="Wed Aug 18 15:46:56 2021 +0200"       "io.openshift.s2i.build.commit.id"="59ca6fbe0dc4cffecdf818d4b618610968a06226"       "io.openshift.s2i.build.commit.ref"="main"       "io.openshift.s2i.build.commit.message"="feat:created Containerfile with opf-toolbox tools (#7)"       "io.openshift.s2i.build.source-location"="/home/tcoufal/Programming/AI-CoE/operate-first/hitchhikers-guide/."       "io.openshift.s2i.build.image"="builder"       "io.openshift.s2i.build.commit.author"="Michal Drla <mdrla@redhat.com>"
--> a10630fe4c6
STEP 3/8: USER root
--> df2cd30b87a
STEP 4/8: COPY upload/src /tmp/src
--> 80c97d9f4c0
STEP 5/8: RUN chown -R 1001:0 /tmp/src
--> 57a0d101915
STEP 6/8: USER 1001
--> afddb250afe
STEP 7/8: RUN /usr/libexec/s2i/assemble
...
  1. Observe failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants