One image to rule them all
This Docker Image is heavily used within the Otto Group. More details in the SAP Blog post: https://blogs.sap.com/2019/11/08/otto-group-its-journey-to-sap-cloud-platform/
This Docker image based is on Ubuntu GNU/Linux 20.04 LTS (ubuntu:latest
).
The following software is included:
- SapMachine OpenJDK release maintained and supported by SAP (
java
) - Python 3 (
python3
) - Cloud Foundry CLI (
cf
) - SAP Cloud Platform Neo Environment SDK (
neo.sh
) - SAP Cloud MTA Build Tool (
mbt
) - Node.js (
node
) - MkDocs (
mkdocs
)
Execute...
- Java:
java
- Python 3:
python3
- Cloud Foundry CLI:
cf
- SAP Cloud Platform Neo Environment SDK:
neo.sh
- Node.js:
node
- SAP Cloud MTA Build tool:
mbt
- MkDocs:
mkdocs
_schema-version: '2.0'
ID: de.nkn-it.demo
version: 1.0.0
modules:
- name: demo
type: html5
path: webapp
parameters:
version: ${VERSION}
build-parameters:
builder: zip
ignore: ["*.git*"]
SAP Cloud MTA Build Tool:
image: cyclenerd/scp-tools-gitlab:latest
stages:
- deploy
build-and-deploy:
stage: deploy
script:
- export VERSION=$(git rev-parse --short HEAD)
- envsubst < mta.yaml > mta.yaml
- mbt build --platform=neo --target=mta_archives --mtar=deploy.mtar
- neo.sh deploy-mta -a "$SCP_ACCOUNT" -u "$SCP_USER" -p "$SCP_PASSWORD" -h hana.ondemand.com --source mta_archives/deploy.mtar --synchronous
only:
- master
If you have found a bug (English is not my mother tongue) or have any improvements, send me a pull request.