Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.
/ scp-tools-gitlab Public archive

🦊 Docker Image with SAP Cloud Platform Tools (SAP Business Technology Platform) optimized for GitLab Runner and Google Cloud Build

License

Notifications You must be signed in to change notification settings

Cyclenerd/scp-tools-gitlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.