-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* publish docker image * fix working dir * circle ci change * fix docker, docsify, update readme * comments and update readme * fix build scripts * update readme * remove apk cache
- Loading branch information
Showing
6 changed files
with
110 additions
and
27 deletions.
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
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Document</title> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<meta name="description" content="Description"> | ||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css"> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script> | ||
window.$docsify = { | ||
name: '', | ||
repo: '' | ||
} | ||
</script> | ||
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM java:8u111-jdk-alpine | ||
|
||
RUN set -eux; \ | ||
mkdir -p /opt/palantir/services; | ||
|
||
ADD recipe-example-server/ /opt/palantir/services/recipe-example-server | ||
|
||
RUN chmod +x /opt/palantir/services/recipe-example-server/bin/recipe-example-server | ||
|
||
EXPOSE 8000 | ||
|
||
WORKDIR /opt/palantir/services/recipe-example-server/ | ||
ENTRYPOINT ["./bin/recipe-example-server", "server", "var/conf/recipes.yml"] |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
cd "$(dirname "${BASH_SOURCE[0]}" )"/.. | ||
|
||
VERSION=$(git describe --tags --always --first-parent) | ||
DEST=build/docker | ||
|
||
rm -rf $DEST | ||
mkdir -p $DEST/recipe-example-server/var/conf | ||
|
||
cp ./scripts/Dockerfile $DEST/ | ||
tar -xf "./recipe-example-server/build/distributions/recipe-example-server-${VERSION}.tar" -C $DEST/recipe-example-server --strip-components=1 | ||
cp ./recipe-example-server/var/conf/recipes.yml $DEST/recipe-example-server/var/conf | ||
|
||
cd $DEST | ||
docker build -t "palantir/recipe-example-server:$VERSION" . | ||
docker tag "palantir/recipe-example-server:$VERSION" "palantir/recipe-example-server:latest" | ||
|