forked from ContainX/openstack4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ContainX/master
update my repo
- Loading branch information
Showing
1,793 changed files
with
105,203 additions
and
7,768 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,7 @@ test-output | |
pom-shade.xml | ||
*.releaseBackup | ||
*.versionsBackup | ||
*/bin/* | ||
*.iml | ||
*.ipr | ||
*.iws |
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
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,11 @@ | ||
FROM maven:latest | ||
|
||
COPY . /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
RUN useradd -m -u 1000 builder | ||
RUN chown -R builder /usr/src/app | ||
USER builder | ||
|
||
RUN mvn clean compile | ||
|
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,24 @@ | ||
# Make file used to build and test within Docker for prestine environment (Maven) tests | ||
# Creates a Docker image locally in the format of "openstack4j-dev" with a tag of the current branch when make is executed | ||
|
||
.PHONY: all test | ||
|
||
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null) | ||
IMAGE_NAME := openstack4j-dev$(if $(GIT_BRANCH),:$(GIT_BRANCH)) | ||
DOCKER_RUN := docker run --rm -it --privileged -e MAVEN_CONFIG=/home/builder/.m2 $(IMAGE_NAME) | ||
|
||
default: build | ||
|
||
all: compile test | ||
|
||
compile: build | ||
$(DOCKER_RUN) mvn clean compile | ||
|
||
test: build | ||
$(DOCKER_RUN) mvn verify | ||
|
||
package: build | ||
$(DOCKER_RUN) mvn clean package | ||
|
||
build: | ||
docker build -t "$(IMAGE_NAME)" . |
Oops, something went wrong.