File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,6 @@ chsh -s "$(which zsh)" root
113
113
python3 -m pip install argcomplete
114
114
activate-global-python-argcomplete
115
115
116
- # Install oh-my-zsh
117
- sh -c " $( curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh) "
118
-
119
116
# shellcheck disable=SC1091
120
117
source " $DIR /setup-image.sh"
121
118
Original file line number Diff line number Diff line change 63
63
python -m build --outdir " $REPO_DIR /final/dist/" --wheel " $REPO_DIR "
64
64
ansible-builder create -f execution-environment.yml --output-filename Containerfile -v3
65
65
$BUILD_CMD -f context/Containerfile context/ --tag " ${TAG_BASE} "
66
- cp tools/setup-image.sh final/
66
+ ln -f tools/setup-image.sh final/
67
67
$BUILD_CMD -f final/Containerfile final/ --tag " ${IMAGE_NAME} "
68
68
69
69
# We save local image in order to import it inside the container later for c-in-c testing
Original file line number Diff line number Diff line change @@ -9,3 +9,11 @@ OC_VERSION=4.15
9
9
curl -s -L " https://mirror.openshift.com/pub/openshift-v4/$( arch) /clients/ocp/stable-${OC_VERSION} /openshift-client-linux.tar.gz" | tar -C /usr/local/bin -xz --no-same-owner
10
10
chmod +x /usr/local/bin/oc
11
11
oc version --client=true
12
+
13
+ # Ensure that we have a ~/.zshrc file as otherwise zsh will start its first run
14
+ # wizard which will cause the container to hang. This was seen as happening on
15
+ # ubi9 image but not on fedora one.
16
+ touch ~ /.zshrc
17
+
18
+ # Install oh-my-zsh
19
+ sh -c " $( curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh) " " " --unattended
You can’t perform that action at this time.
0 commit comments