-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: NxPKG <[email protected]>
- Loading branch information
Showing
1 changed file
with
47 additions
and
1 deletion.
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 +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"] |