Skip to content

mschleeweiss/scp-tools-gitlab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SAP Cloud Platform Tools optimized for GitLab Runner

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/

Software

This Docker image based is on Ubuntu GNU/Linux 20.04 LTS (ubuntu:latest).

The following software is included:

HOWTO

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

Example

mta.yml

_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*"]

.gitlab-ci.yml

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

Help 👍

If you have found a bug (English is not my mother tongue) or have any improvements, send me a pull request.

About

🦊 Docker Image with SAP Cloud Platform Tools optimized for GitLab Runner

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%