Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: NxPKG <[email protected]>
  • Loading branch information
NxPKG authored Oct 13, 2024
1 parent 55a5e93 commit 8ef9391
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion .github/actions/build-environment/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,47 @@
FROM khulnasoft/build-environment:0.6.14
FROM khulnasoft/build-environment:0.6.18

# Install Java
ENV JAVA_HOME="/usr/lib/jvm/java-1.15.0-openjdk-amd64"
RUN \
add-apt-repository ppa:openjdk-r/ppa \
&& apt-get update \
&& apt-get install -y openjdk-15-jdk \
&& dpkg-query -l

# Install docker-compose
RUN \
curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose

# Install kind for Kubernetes testing
RUN \
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.9.0/kind-linux-amd64 \
&& chmod +x ./kind \
&& mv ./kind /usr/bin/kind
COPY kind-config.yaml /kind-config.yaml

# Install kubectl
RUN \
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.18.12/bin/linux/amd64/kubectl \
&& chmod +x ./kubectl \
&& mv ./kubectl /usr/local/bin/kubectl

# Install lib required for psycopg2
RUN \
apt-get update \
&& apt-get install -y libpq-dev

# Update node and yarn version
RUN apt-get update \
&& curl -sL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install -g yarn@1 \
# Clean up
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

COPY extended-entrypoint.sh /extended-entrypoint.sh

RUN chmod +x /extended-entrypoint.sh

ENTRYPOINT ["/tini", "-g", "--", "/extended-entrypoint.sh"]

0 comments on commit 8ef9391

Please sign in to comment.