Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

Commit fb2a36e

Browse files
Alexander PatrikalakisAlexander Patrikalakis
authored andcommitted
Use Amazon Linux 2 in Dockerfiles (fixes #278)
1 parent 77e2a51 commit fb2a36e

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/test/resources/dynamodb-janusgraph-docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
# Portions copyright 2017 JanusGraph authors
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License").
@@ -13,13 +13,13 @@
1313
# express or implied. See the License for the specific language governing
1414
# permissions and limitations under the License.
1515
#
16-
FROM openjdk:8
16+
FROM amazonlinux
17+
RUN yum update -y -q -e 0 && yum upgrade -y -q -e 0 && yum install -y -q java-1.8.0-openjdk unzip
1718

1819
ARG server_zip
1920
ADD ${server_zip} /var
2021

21-
RUN apt-get update -y && apt-get install -y zip && \
22-
server_base=`basename ${server_zip} .zip` && \
22+
RUN server_base=`basename ${server_zip} .zip` && \
2323
unzip -q /var/${server_base}.zip -d /var && \
2424
mv /var/${server_base} /var/jg
2525

src/test/resources/dynamodb-local-docker/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
# Portions copyright 2017 JanusGraph authors
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License").
@@ -13,9 +13,10 @@
1313
# express or implied. See the License for the specific language governing
1414
# permissions and limitations under the License.
1515
#
16-
FROM openjdk:8
16+
FROM amazonlinux
1717

18-
RUN apt-get update -y && apt-get install -y zip sqlite3 libsqlite3-dev \
18+
RUN yum update -y -q -e 0 && yum upgrade -y -q -e 0 \
19+
&& yum install -y -q java-1.8.0-openjdk sqlite3 libsqlite3-dev wget tar gzip \
1920
&& mkdir -p /var/dynamodblocal
2021
WORKDIR /var/dynamodblocal
2122
RUN wget https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz -q -O - | tar -xz

0 commit comments

Comments
 (0)