-
Notifications
You must be signed in to change notification settings - Fork 18
feat: better install packages. remove agent, db, terminus, jdk; rely … #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -15,12 +15,10 @@ FROM ubuntu:${UBUNTU_VERSION} AS final | |
ARG vcs_ref | ||
ARG build_type | ||
ARG build_date | ||
ARG PACKAGES="git netbase openjdk-17-jre-headless openssh-client libssh2-1 dumb-init net-tools adduser" | ||
ARG PACKAGES="git netbase openssh-client libssh2-1 dumb-init" | ||
ARG TARGETARCH | ||
ARG OPENVOX_RELEASE=8 | ||
ARG OPENVOXSERVER_VERSION=8.8.0 | ||
ARG OPENVOXAGENT_VERSION=8.11.0 | ||
ARG OPENVOXDB_VERSION=8.9.0 | ||
ARG OPENVOX_USER_UID=999 | ||
ARG OPENVOX_USER_GID=999 | ||
ARG UBUNTU_VERSION=24.04 | ||
|
@@ -36,39 +34,40 @@ LABEL org.label-schema.maintainer="Voxpupuli Team <[email protected]>" \ | |
org.label-schema.vcs-ref="$vcs_ref" \ | ||
org.label-schema.build-date="$build_date" | ||
|
||
ENV OPENVOXSERVER_JAVA_ARGS="-Xms1024m -Xmx1024m" \ | ||
PATH=$PATH:/opt/puppetlabs/server/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin \ | ||
SSLDIR=/etc/puppetlabs/puppet/ssl \ | ||
LOGDIR=/var/log/puppetlabs/puppetserver \ | ||
OPENVOXSERVER_HOSTNAME="" \ | ||
CERTNAME="" \ | ||
DNS_ALT_NAMES="" \ | ||
OPENVOXSERVER_PORT=8140 \ | ||
AUTOSIGN=true \ | ||
OPENVOXSERVER_MAX_ACTIVE_INSTANCES=1 \ | ||
OPENVOXSERVER_MAX_REQUESTS_PER_INSTANCE=0 \ | ||
ENV AUTOSIGN=true \ | ||
CA_ALLOW_SUBJECT_ALT_NAMES=false \ | ||
CA_ENABLED=true \ | ||
CA_TTL=157680000 \ | ||
CA_HOSTNAME=puppet \ | ||
CA_PORT=8140 \ | ||
CA_ALLOW_SUBJECT_ALT_NAMES=false \ | ||
INTERMEDIATE_CA=false \ | ||
CERTNAME="" \ | ||
CSR_ATTRIBUTES='{}' \ | ||
DEBIAN_FRONTEND=noninteractive \ | ||
DNS_ALT_NAMES="" \ | ||
ENVIRONMENTPATH=/etc/puppetlabs/code/environments \ | ||
HIERACONFIG='$confdir/hiera.yaml' \ | ||
INTERMEDIATE_CA_BUNDLE=/etc/puppetlabs/intermediate/ca.pem \ | ||
INTERMEDIATE_CRL_CHAIN=/etc/puppetlabs/intermediate/crl.pem \ | ||
INTERMEDIATE_CA_KEY=/etc/puppetlabs/intermediate/key.pem \ | ||
USE_OPENVOXDB=true \ | ||
OPENVOXDB_SERVER_URLS=https://openvoxdb:8081 \ | ||
INTERMEDIATE_CA=false \ | ||
INTERMEDIATE_CRL_CHAIN=/etc/puppetlabs/intermediate/crl.pem \ | ||
LOGDIR=/var/log/puppetlabs/puppetserver \ | ||
OPENVOX_REPORTS="puppetdb" \ | ||
OPENVOX_STORECONFIGS_BACKEND="puppetdb" \ | ||
OPENVOX_STORECONFIGS=true \ | ||
OPENVOX_REPORTS="puppetdb" \ | ||
OPENVOXDB_SERVER_URLS=https://openvoxdb:8081 \ | ||
OPENVOXSERVER_ENABLE_ENV_CACHE_DEL_API=true \ | ||
OPENVOXSERVER_ENVIRONMENT_TIMEOUT=unlimited \ | ||
OPENVOXSERVER_GRAPHITE_EXPORTER_ENABLED=false \ | ||
OPENVOXSERVER_GRAPHITE_PORT=9109 \ | ||
OPENVOXSERVER_GRAPHITE_HOST=exporter \ | ||
OPENVOXSERVER_ENVIRONMENT_TIMEOUT=unlimited \ | ||
OPENVOXSERVER_ENABLE_ENV_CACHE_DEL_API=true \ | ||
ENVIRONMENTPATH=/etc/puppetlabs/code/environments \ | ||
HIERACONFIG='$confdir/hiera.yaml' \ | ||
CSR_ATTRIBUTES='{}' | ||
OPENVOXSERVER_GRAPHITE_PORT=9109 \ | ||
OPENVOXSERVER_HOSTNAME="" \ | ||
OPENVOXSERVER_JAVA_ARGS="-Xms1024m -Xmx1024m" \ | ||
OPENVOXSERVER_MAX_ACTIVE_INSTANCES=1 \ | ||
OPENVOXSERVER_MAX_REQUESTS_PER_INSTANCE=0 \ | ||
OPENVOXSERVER_PORT=8140 \ | ||
PATH=$PATH:/opt/puppetlabs/server/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin \ | ||
SSLDIR=/etc/puppetlabs/puppet/ssl \ | ||
USE_OPENVOXDB=true | ||
|
||
COPY docker-entrypoint.sh \ | ||
healthcheck.sh \ | ||
|
@@ -81,19 +80,15 @@ COPY --from=builder /usr/local/bin/r10k /usr/local/bin/ | |
|
||
ADD https://apt.overlookinfratech.com/openvox${OPENVOX_RELEASE}-release-ubuntu${UBUNTU_VERSION}.deb / | ||
RUN apt-get update && \ | ||
apt-get install -y ca-certificates && \ | ||
dpkg -i /openvox${OPENVOX_RELEASE}-release-ubuntu${UBUNTU_VERSION}.deb && \ | ||
apt-get install -y ca-certificates /openvox${OPENVOX_RELEASE}-release-ubuntu${UBUNTU_VERSION}.deb && \ | ||
rm /openvox${OPENVOX_RELEASE}-release-ubuntu${UBUNTU_VERSION}.deb | ||
|
||
RUN groupadd -g ${OPENVOX_USER_GID} puppet && \ | ||
useradd -m -u ${OPENVOX_USER_UID} -g puppet puppet && \ | ||
chmod +x /docker-entrypoint.sh /healthcheck.sh /docker-entrypoint.d/*.sh && \ | ||
apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y $PACKAGES && \ | ||
apt-get install -y openvox-agent=${OPENVOXAGENT_VERSION}-1+ubuntu${UBUNTU_VERSION} && \ | ||
apt-get install -y openvox-server=${OPENVOXSERVER_VERSION}-1+ubuntu${UBUNTU_VERSION} && \ | ||
apt-get install -y openvoxdb-termini=${OPENVOXDB_VERSION}-1+ubuntu${UBUNTU_VERSION} && \ | ||
apt-get install -y $PACKAGES openvox-server=${OPENVOXSERVER_VERSION}-1+ubuntu${UBUNTU_VERSION} && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.