Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from Anh3h/dockerise
Browse files Browse the repository at this point in the history
Add Docker configuration
  • Loading branch information
Anh3h authored May 27, 2019
2 parents a21b231 + 9656215 commit a2d9d99
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
api/
component-test/
gradle/
gradlew.bat
LICENSE
README.md
settings.gradle
build.gradle
docs/
gradlew
HEADER
NOTICE.txt
service/
.git/
.gradle/
.gitignore
shared.gradle
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ gradle-app.setting

*.log

*.toDelete
*.toDelete

*.jar
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
FROM openjdk:8-jdk-alpine

ARG provisioner_port=2020

ENV server.max-http-header-size=16384 \
cassandra.clusterName="Test Cluster" \
server.port=$provisioner_port

WORKDIR /tmp
COPY provisioner-service-boot-0.1.0-BUILD-SNAPSHOT.jar .

CMD ["java", "-jar", "provisioner-service-boot-0.1.0-BUILD-SNAPSHOT.jar"]
3 changes: 2 additions & 1 deletion shared.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ rat {
"**/build/**",
"gradlew",
"gradlew.bat",
"README.md"
"README.md",
"**/.dockerignore/**"
]
}

0 comments on commit a2d9d99

Please sign in to comment.