Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Attempt to build the Dockerfile in singleuser #25

Open
kcpevey opened this issue Aug 29, 2022 · 5 comments
Open

Attempt to build the Dockerfile in singleuser #25

kcpevey opened this issue Aug 29, 2022 · 5 comments

Comments

@kcpevey
Copy link
Collaborator

kcpevey commented Aug 29, 2022

Summary

Attempt to build the Dockerfile in singleuser repo (https://repo1.dso.mil/dsop/opensource/metrostar/singleuser/-/blob/development/Dockerfile). If this is something we can build, its something we can test, and should test.

Report results here.

@kcpevey kcpevey added the type: exploration 🔮 Experiments and prototypes label Aug 29, 2022
@iameskild iameskild self-assigned this Aug 31, 2022
@iameskild
Copy link
Contributor

iameskild commented Aug 31, 2022

I'm having trouble building the docker image because the base image needs to be pulled from a private registry which I don't have access to which makes sense.

Image: singleuser

 => ERROR [internal] load metadata for registry1.dso.mil/ironbank/opensource/metrostar/miniconda:4.12.0                 1.2s
------
 > [internal] load metadata for registry1.dso.mil/ironbank/opensource/metrostar/miniconda:4.12.0:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests 4.12.0]: 401 Unauthorized

Reverse engineering the image:

The singleuser base image:

  • registry1.dso.mil/ironbank/opensource/metrostar/miniconda:4.12.0

The miniconda base image:

  • registry1.dso.mil/ironbank/redhat/ubi/ubi8:8.6
    • The public equivalent of this would be:
      • registry.access.redhat.com/ubi8/ubi:8.6

Current steps to build singleuser image:

  1. From the scripts folder in the miniconda repo, run the following to download the tar files for each conda package.
    • python download_conda_packages.py
  2. Build the docker image locally using the public equivalent base image:
    • docker build -t ib_miniconda:test . --build-arg BASE_REGISTRY=registry.access.redhat.com --build-arg BASE_IMAGE=ubi8/ubi --build-arg BASE_TAG=8.6
  3. From the scripts folder in the singleuser repo, run the following to download the tar files for each conda package.
    • python download_conda_packages.py
  4. Use this ib_miniconda:test image to build the singleuser image (update FROM ib_miniconda:test) by running:
    • docker build -t ib_singleuser:test .

We should be able to build this process into the test script.

@kcpevey
Copy link
Collaborator Author

kcpevey commented Sep 1, 2022

@rycrow @tylerpotts is there any way we can access registry1.dso.mil/ironbank/opensource/metrostar/miniconda:4.12.0 ? Or the Dockerfile that builds it?

@kcpevey
Copy link
Collaborator Author

kcpevey commented Sep 1, 2022

registry1.dso.mil/ironbank/opensource/metrostar/miniconda:4.12.0 is built from https://repo1.dso.mil/dsop/opensource/metrostar/miniconda/-/blob/development/Dockerfile

@kcpevey
Copy link
Collaborator Author

kcpevey commented Sep 6, 2022

@kcpevey kcpevey added this to the Sprint #2 - Sept 19-23 milestone Sep 13, 2022
@kcpevey
Copy link
Collaborator Author

kcpevey commented Sep 13, 2022

Think through how this can be done outside of CI. Report back here.

@kcpevey kcpevey linked a pull request Sep 26, 2022 that will close this issue
@kcpevey kcpevey added impact: high and removed type: exploration 🔮 Experiments and prototypes labels Sep 26, 2022
@iameskild iameskild removed their assignment Jan 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants