Skip to content

Commit

Permalink
#2 Build spark and jenkins docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-gary committed May 1, 2024
1 parent a8aedb1 commit 933b3e0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
./get_helm.sh
- name: Build aiSSEMBLE
# run: mvn dependency:resolve --file pom.xml -Dhabushu.usePyenv=false
run: mvn -B install --file pom.xml -pl :aissemble-enforcer-extension,:aissemble-airflow -Dhabushu.usePyenv=false -DskipTests -X
run: mvn -B install --file pom.xml -pl :aissemble-enforcer-extension,:aissemble-airflow,:aissemble-spark,:aissemble-jenkins-controller -Dhabushu.usePyenv=false -DskipTests -X

# # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
# - name: Update dependency graph
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ FROM jenkins/jenkins:lts-jdk11
LABEL org.opencontainers.image.source = "https://github.com/boozallen/aissemble"

USER root
COPY ./target/cacerts/* /usr/local/share/ca-certificates/
# COPY ./target/cacerts/* /usr/local/share/ca-certificates/
# Update CA certificates and import each certificate in the directory
RUN update-ca-certificates && \
for cert in /usr/local/share/ca-certificates/*.crt; do \
keytool -import -trustcacerts -keystore "$JAVA_HOME/lib/security/cacerts" -storepass changeit -noprompt -file "$cert"; \
done
# RUN update-ca-certificates && \
# for cert in /usr/local/share/ca-certificates/*.crt; do \
# keytool -import -trustcacerts -keystore "$JAVA_HOME/lib/security/cacerts" -storepass changeit -noprompt -file "$cert"; \
# done
USER jenkins

RUN jenkins-plugin-cli --plugins git:4.11.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ RUN printf '#!/bin/bash\n\nif [[ "$1" == "-r" ]] ;then\n echo '4.9.250'\n exit\n
RUN chmod 755 /bin/uname
# Workaround for ubuntu fix end

COPY ./target/cacerts/* /usr/local/share/ca-certificates/
# COPY ./target/cacerts/* /usr/local/share/ca-certificates/

RUN update-ca-certificates && apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y openjdk-11-jdk \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
# RUN update-ca-certificates && apt-get update \
# && apt-get upgrade -y \
# && apt-get install -y openjdk-11-jdk \
# && update-ca-certificates \
# && rm -rf /var/lib/apt/lists/* \
# && apt-get clean
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL org.opencontainers.image.source = "https://github.com/boozallen/aissemble"

USER root

COPY ./target/cacerts/* /usr/local/share/ca-certificates/
# COPY ./target/cacerts/* /usr/local/share/ca-certificates/

# Configures the desired version of Python to install
ARG PYTHON_VERSION=3.11.4
Expand Down

0 comments on commit 933b3e0

Please sign in to comment.