Up to Step 3.1, everything works and looks fine. The Step 3.2 says to do this:
When this is done, an AVC alert is generated (which, incidentally, isn't seen when using sudo . . . I discovered this after switching to the root account attempting to start the container there):
However, after setting the SELinux Boolean (I didn't use the -P option because I didn't want to the Boolean to be persistent) and re-running the command to create the container, the container is still not created:
As seen here, I
In a effort to try and figure out what's going on, I rebuilt the gitea image for the root user. I then logged out of student and in as root and tried again, with the same results.
So, I'm a bit stumped. The lab doesn't work and I'm not sure why.
Hi @Tracy_Baker !
Thanks for reaching out !
We are aware of this bug and it has been resolved by our curiculum development team. However this fix is waiting to be released.
For the time being, use this workaround and see if this helps :
The root cause is in this line in the Containerfile:
RUN dnf install -y git && \
curl "https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64" -o ${GITEA_BIN_DIR}/gitea && \
chmod +x ${GITEA_BIN_DIR}/gitea
The dl.gitea.io server has added a redirect, which makes the curl command fail.
For students trying to work around the issue while waiting for the next release, adding the -L flag to the curl command should solve the issue:
RUN dnf install -y git && \
curl -L "https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64" -o ${GITEA_BIN_DIR}/gitea && \
chmod +x ${GITEA_BIN_DIR}/gitea
Hi @Tracy_Baker !
Thanks for reaching out !
We are aware of this bug and it has been resolved by our curiculum development team. However this fix is waiting to be released.
For the time being, use this workaround and see if this helps :
The root cause is in this line in the Containerfile:
RUN dnf install -y git && \
curl "https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64" -o ${GITEA_BIN_DIR}/gitea && \
chmod +x ${GITEA_BIN_DIR}/gitea
The dl.gitea.io server has added a redirect, which makes the curl command fail.
For students trying to work around the issue while waiting for the next release, adding the -L flag to the curl command should solve the issue:
RUN dnf install -y git && \
curl -L "https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64" -o ${GITEA_BIN_DIR}/gitea && \
chmod +x ${GITEA_BIN_DIR}/gitea
Thanks!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.