From 6ce6dfdd5d8254ec99be2b7ee876be2d799284ec Mon Sep 17 00:00:00 2001 From: swo0k Date: Wed, 19 Dec 2018 16:54:31 +0800 Subject: [PATCH] Update instructions for tmpfs --- Dockerfile | 2 -- Makefile | 2 +- README.md | 5 +++-- _VERSION | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5c8471a..ecfe890 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,14 +20,12 @@ RUN set -x \ && mv r53Server /usr/bin/r53Server \ && apk del .build-deps \ && rm -rf /go \ - && mkdir /empty \ && echo "Build complete." FROM scratch COPY --from=builder /usr/bin/r53Server /usr/bin/r53Server COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs -COPY --from=builder /empty /tmp COPY static static COPY templates templates diff --git a/Makefile b/Makefile index 693affb..9f7177d 100644 --- a/Makefile +++ b/Makefile @@ -129,7 +129,7 @@ bump-version: ## Bump the version in the version file. Set BUMP to [ patch | maj @echo "Bumping VERSION from $(VERSION) to $(NEW_VERSION)" echo $(NEW_VERSION) > _VERSION @echo "Updating links to download binaries in README.md" - sed -i s/$(VERSION)/$(NEW_VERSION)/g README.md + sed -i "" -e s/$(VERSION)/$(NEW_VERSION)/g README.md git add _VERSION README.md git commit -vsam "Bump version to $(NEW_VERSION)" @echo "Run make tag to create and push the tag for new version $(NEW_VERSION)" diff --git a/README.md b/README.md index 9261e88..f2e2499 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ based on [jessfraz/s3server](https://github.com/jessfraz/s3server) ```bash Server to index & view recods in r53 zones. - Version: v0.1.0 + Version: v0.1.1 Build: 9089a07 -aws-access-key-id string AWS access key @@ -35,7 +35,8 @@ docker run -d \ -p 8080:8080 \ -e AWS_ACCESS_KEY_ID \ -e AWS_SECRET_ACCESS_KEY \ - quay.io/swo0k/r53server:v0.1.0 \ + --tmpfs /tmp \ + quay.io/swo0k/r53server:v0.1.1 \ -zone Z2UE.......... \ -zone Z1W........... ``` diff --git a/_VERSION b/_VERSION index b82608c..8308b63 100644 --- a/_VERSION +++ b/_VERSION @@ -1 +1 @@ -v0.1.0 +v0.1.1