https://github.com/ehsaniara/bitbucket-util
Docker Image for Bitbucket CI/CD Pipeline Image with JAVA 11 (JDK)
https://github.com/ehsaniara/bitbucket-util
aws-cli bitbucket-ci cd-pipeline curl docker git java java11 kubernetes maven nodejs ssh-client unzip wget
Last synced: 4 months ago
JSON representation
Docker Image for Bitbucket CI/CD Pipeline Image with JAVA 11 (JDK)
- Host: GitHub
- URL: https://github.com/ehsaniara/bitbucket-util
- Owner: ehsaniara
- Created: 2020-01-06T19:19:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-15T23:05:50.000Z (about 5 years ago)
- Last Synced: 2025-01-07T19:53:34.127Z (5 months ago)
- Topics: aws-cli, bitbucket-ci, cd-pipeline, curl, docker, git, java, java11, kubernetes, maven, nodejs, ssh-client, unzip, wget
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bitbucket CI/CD Pipeline Image with JAVA 11 (JDK)
Included the following packages:- openjdk-11-jdk
- AWS cli
- Kubernetes
- python3-pip
- NodeJs
- software-properties-common
- build-essential
- wget
- curl
- git
- maven
- ssh-client
- unzip
- iputils-pingThis is just an example for **bitbucket-pipelines.yml**
```yaml
options:
docker: true
pipelines:
branches:
master:
- step:
name: Production Build on Master
image: ehsaniara/bitbucket-util:latest
trigger: automatic
script:
- mvn clean install
```Easy to build your docker during the pipeline:
```yaml
options:
docker: true
pipelines:
branches:
master:
- step:
name: Production Build on Master
image: ehsaniara/bitbucket-util:latest
trigger: automatic
script:
...
- docker build -t ${YOUR_PUBLIC_DOCKER_REGISTRY_URL}:$TAG .
- docker push ${YOUR_PUBLIC_DOCKER_REGISTRY_URL}:$TAG
- docker tag ${YOUR_PUBLIC_DOCKER_REGISTRY_URL}:$TAG ${YOUR_PUBLIC_DOCKER_REGISTRY_URL}:$TAG
- docker push ${YOUR_PUBLIC_DOCKER_REGISTRY_URL}:$TAG
...
```Easy to run your CI/CD pipeline with Kubernetes:
```yaml
options:
docker: true
pipelines:
branches:
master:
- step:
name: Production Build on Master
image: ehsaniara/bitbucket-util:latest
trigger: automatic
script:
...
- kubectl config set-cluster ${KUBERNETES_PROVIDER_CLUSTER_NAME} --server=${KUBERNETES_PROVIDER_SERVER} --certificate-authority="$(pwd)/kube_ca"
- kubectl config set-credentials bitbucket --token="$(cat ./kube_token)"
- kubectl config set-context development --cluster=${KUBERNETES_PROVIDER_CLUSTER_NAME} --user=bitbucket # I assume you have already setup your K8s ServiceAccount
- kubectl config use-context development
...
```