-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build dev containers from nightly rpms instead of from source reducing their image size and utilizing systemd within the container to test it. Co-authored-by: treydock <[email protected]>
- Loading branch information
Showing
7 changed files
with
29 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
FROM ood:latest | ||
FROM rockylinux/rockylinux:8 | ||
LABEL maintainer="[email protected]; [email protected]" | ||
|
||
ARG USER=ood | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
|
||
RUN dnf reinstall -y httpd-tools && \ | ||
dnf install -y \ | ||
strace lua python3 && \ | ||
RUN dnf install -y https://yum.osc.edu/ondemand/latest/ondemand-release-web-latest-1-6.noarch.rpm && \ | ||
dnf clean all && rm -rf /var/cache/dnf/* | ||
|
||
RUN cp /etc/yum.repos.d/ondemand-web.repo /etc/yum.repos.d/ondemand-nightly-web.repo && \ | ||
sed /etc/yum.repos.d/ondemand-web.repo -e 's/latest/nightly/g' \ | ||
-e 's/ondemand-web/ondemand-web-nightly/g' > /etc/yum.repos.d/ondemand-nightly-web.repo | ||
|
||
RUN dnf -y update && \ | ||
dnf install -y dnf-utils && \ | ||
dnf config-manager --set-enabled powertools && \ | ||
dnf -y module enable nodejs:14 ruby:2.7 && \ | ||
dnf install -y ondemand ondemand-dex && \ | ||
dnf clean all && rm -rf /var/cache/dnf/* | ||
|
||
RUN sed -i 's#^CREATE_MAIL_SPOOL=yes#CREATE_MAIL_SPOOL=no#' /etc/default/useradd; \ | ||
grep $GID /etc/group >/dev/null || groupadd -g $GID $USER; \ | ||
useradd -l -u $UID --create-home --gid $GID $USER && \ | ||
echo "$USER ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/$USER | ||
|
||
COPY docker/dev-entrypoint.sh /entrypoint.sh | ||
RUN sed -i 's|--rpm|--rpm -f --insecure|g' /etc/systemd/system/httpd.service.d/ood-portal.conf | ||
RUN systemctl enable httpd ondemand-dex | ||
|
||
CMD [ "/sbin/init" ] | ||
|
||
CMD [ "/entrypoint.sh" ] | ||
EXPOSE 8080 | ||
EXPOSE 5556 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters