Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Latest commit

 

History

History
141 lines (103 loc) · 4.48 KB

README.md

File metadata and controls

141 lines (103 loc) · 4.48 KB

SAP Cloud (SAP BTP) Tools optimized for GitLab Runner

Badge: SAP Badge: GitLab Badge: Ubuntu Badge: Docker Badge: License


Public Archive Notice

This repository has been transitioned to a public archive. While development has ceased, the codebase remains available for reference and historical purposes.

Impact on Current Users:

  • New features and bug fixes will no longer be implemented.
  • Issues and pull requests will not be reviewed or merged.
  • This container image will be delisted from Docker Hub in August 2024. Please make alternative arrangements before then.

Accessing the Codebase:

  • You can continue to clone, fork, and explore the code at your convenience.
  • The codebase reflects the repository's state at the time of archiving.

Staying Informed:

  • I recommend considering alternative projects that are actively maintained for your ongoing development needs.

Contributing:

  • While new contributions are no longer accepted in this repository, feel free to explore forking the codebase and creating your own derivative project.

Thank You:

I appreciate your past contributions and interest in this project. I hope the archived codebase remains a valuable resource!


💿 One image to rule them all

This Docker container image is was heavily used within the Otto Group. More details in the SAP Blog post: https://community.sap.com/t5/technology-blogs-by-members/otto-group-it-s-journey-to-sap-cloud-platform/ba-p/13437042

Software

Container image based is on Ubuntu GNU/Linux.

The following software is included:

HOWTO

Docker pull command:

docker pull cyclenerd/scp-tools-gitlab:latest

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 run command:

docker run cyclenerd/scp-tools-gitlab:latest java --version

Examples

MTA (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 (.gitlab-ci.yml)

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

Google Cloud Build (cloudbuild.yml)

 - name: 'cyclenerd/scp-tools-gitlab:latest'
   entrypoint: 'java'
   args: ['--version']

Help 👍

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