This file contains hidden or 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
[alias] | |
graph = log --graph --all --date=relative --pretty=format:'%C(yellow)%h %Cgreen%d %Creset%s %C(dim normal)(%ad) %an%Creset' |
This file contains hidden or 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
GRADLE_VERSION?=2.13 | |
GRADLE_IMAGE=vivareal/gradle:$(GRADLE_VERSION) | |
GRADLE=docker run -i $(GRADLE_IMAGE) |
This file contains hidden or 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
PROJECT_DIR=$(shell pwd) | |
BUILD_DIR=build/libs | |
ARTIFACT_REVISION=1.0 | |
ARTIFACT_NAME=example | |
RELATIVE_ARTIFACT_PATH=$(BUILD_DIR)/$(ARTIFACT_NAME)-$(ARTIFACT_REVISION).jar | |
ARTIFACT=$(PROJECT_DIR)/$(RELATIVE_ARTIFACT_PATH) | |
GRADLE_VERSION?=2.13 | |
GRADLE_IMAGE=vivareal/gradle:$(GRADLE_VERSION) |
This file contains hidden or 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
FROM java:8-alpine | |
WORKDIR /vivareal | |
COPY build/libs/example-1.0.jar example.jar | |
COPY scripts/run run | |
ENTRYPOINT ["/vivareal/run"] |
This file contains hidden or 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
PROJECT_DIR=$(shell pwd) | |
ARTIFACT_REVISION=1.0 | |
ARTIFACT_NAME=example | |
ARTIFACT=$(PROJECT_DIR)/build/libs/$(ARTIFACT_NAME)-$(ARTIFACT_REVISION).jar | |
GRADLE_VERSION?=2.13 | |
GRADLE_IMAGE=vivareal/gradle:$(GRADLE_VERSION) | |
GRADLE=docker run -v $(PROJECT_DIR):/project -i $(GRADLE_IMAGE) |
This file contains hidden or 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
FROM java:8-alpine | |
ARG ARTIFACT | |
WORKDIR /vivareal | |
COPY $ARTIFACT example.jar | |
COPY scripts/run run | |
ENTRYPOINT ["/vivareal/run"] |
This file contains hidden or 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
PROJECT_DIR=$(shell pwd) | |
ARTIFACT_REVISION=1.0 | |
ARTIFACT_NAME=example | |
ARTIFACT=$(PROJECT_DIR)/build/libs/$(ARTIFACT_NAME)-$(ARTIFACT_REVISION).jar | |
GRADLE_VERSION?=2.13 | |
GRADLE_IMAGE=vivareal/gradle:$(GRADLE_VERSION) | |
GRADLE=docker run -v $(PROJECT_DIR):/project -i $(GRADLE_IMAGE) |
This file contains hidden or 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
PROJECT_DIR=$(shell pwd) | |
ARTIFACT_REVISION=1.0 | |
ARTIFACT_NAME=example | |
ARTIFACT=$(PROJECT_DIR)/build/libs/$(ARTIFACT_NAME)-$(ARTIFACT_REVISION).jar | |
$(ARTIFACT): | |
gradle clean build | |
build: $(ARTIFACT) |
This file contains hidden or 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
#!/bin/bash | |
# based on https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04 | |
apt-get update | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
apt-get update | |
apt-cache policy docker-engine | |
apt-get install -y docker-engine | |
systemctl status docker | |
usermod -aG docker ubuntu |
This file contains hidden or 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
git submodule foreach git pull origin master |
NewerOlder