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

Commit

Permalink
Fix dev container
Browse files Browse the repository at this point in the history
and bump base image to fedora 37.
  • Loading branch information
vfreex committed Mar 31, 2023
1 parent e6774dd commit 2227332
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .devcontainer/dev.Dockerfile
@@ -1,4 +1,4 @@
FROM registry.fedoraproject.org/fedora:36
FROM registry.fedoraproject.org/fedora:37
LABEL name="doozer-dev" \
description="Doozer development container image" \
maintainer="OpenShift Automated Release Tooling (ART) Team <aos-team-art@redhat.com>"
Expand Down Expand Up @@ -55,13 +55,12 @@ RUN groupadd --gid "$USER_GID" "$USERNAME" \
# Configure Kerberos
COPY .devcontainer/krb5-redhat.conf /etc/krb5.conf.d/

# Preinstall dependencies
COPY ./* /workspaces/doozer/
# Preinstall dependencies and doozer
WORKDIR /workspaces/doozer
COPY . .
RUN chown "$USERNAME" -R /workspaces/doozer \
&& cd /workspaces/doozer \
&& sudo -u "$USERNAME" pip3 install --user -r ./requirements.txt -r requirements-dev.txt \
&& sudo -u "$USERNAME" pip3 install --user -e ./ \
&& GOBIN=/usr/bin/ go install github.com/mikefarah/yq/v4@latest

&& sudo -u "$USERNAME" pip3 install --user -U "pip>=22.3" "setuptools>=64" \
&& sudo -u "$USERNAME" pip3 install --user -r ./requirements.txt -r requirements-dev.txt
RUN sudo -u "$USERNAME" pip3 install --user -e ./ \
&& GOBIN=/usr/bin/ go install github.com/mikefarah/yq/v4@latest
USER "$USER_UID"
WORKDIR /workspaces/doozer

0 comments on commit 2227332

Please sign in to comment.