Add docker publish

This commit is contained in:
Paulo Gustavo Veiga 2022-01-23 15:54:57 -08:00
parent 058bb4ef1c
commit 904b4e8547
2 changed files with 34 additions and 25 deletions

View File

@ -8,18 +8,17 @@
image: maven:3.6.3 image: maven:3.6.3
pipelines: pipelines:
default: branches:
- parallel: '{master,develop}':
- step: - step:
name: Build and Test name: Build and Test
caches: caches:
- node - node
- maven - maven
script: script:
# Compile sources ...
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
- . $HOME/.nvm/nvm.sh && nvm install node - . $HOME/.nvm/nvm.sh && nvm install node
# Workaround for jaxb plugin bug on java 11 or higher.
- export MAVEN_OPTS="--illegal-access=permit"
- mvn -B verify --file pom.xml - mvn -B verify --file pom.xml
after-script: after-script:
# Collect checkstyle results, if any, and convert to Bitbucket Code Insights. # Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
@ -30,3 +29,13 @@ pipelines:
# Run a security scan for sensitive data. # Run a security scan for sensitive data.
# See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security # See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security
- pipe: atlassian/git-secrets-scan:0.5.1 - pipe: atlassian/git-secrets-scan:0.5.1
- step:
name: Docker publish
script:
- docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
- docker build -t veigap/wisemapping:latest -f distribution/Dockerfile wise-webapp/target/
services:
- docker
caches:
- docker

View File

@ -9,7 +9,7 @@ There are multiple ways to run WiseMapping depending on your database configurat
## Option 1: Running HSQL within the image storage ## Option 1: Running HSQL within the image storage
> docker run -it --rm -p 8080:8080 veigap/wisemapping:latest> > $ docker run -it --rm -p 8080:8080 veigap/wisemapping:latest>
Then, open your browser at `http://localhost:8888`. A default user is available for testing `test@wisemapping.com` and password `test`. Then, open your browser at `http://localhost:8888`. A default user is available for testing `test@wisemapping.com` and password `test`.
@ -17,7 +17,7 @@ Then, open your browser at `http://localhost:8888`. A default user is available
## Option 2: Running HSQL with mounted directory ## Option 2: Running HSQL with mounted directory
> docker run -it --rm -p 8080:8080 veigap/wisemapping:latest > $ docker run -it --rm -p 8080:8080 veigap/wisemapping:latest
## Option 3: External MySQL/PostgreSQL ## Option 3: External MySQL/PostgreSQL
@ -30,7 +30,7 @@ Depending on the database your want to configure, you can create initialization
The next step is configure the WiseMapping for the database and credentials. The next step is configure the WiseMapping for the database and credentials.
Download `app.properties` configuration file and configure the required sections: Download `app.properties` configuration file and configure the required sections:
> $ curl https://bitbucket.org/wisemapping/wisemapping-open-source/raw/644b7078d790220c7844b732a83d45495f11d64e/wise-webapp/src/main/webapp/WEB-INF/app.properties' > $ curl https://bitbucket.org/wisemapping/wisemapping-open-source/raw/644b7078d790220c7844b732a83d45495f11d64e/wise-webapp/src/main/webapp/WEB-INF/app.properties
### Starting the application ### Starting the application