https://github.com/stelligent/jenkins-worker-base
Provide a base docker image for jenkins workers
https://github.com/stelligent/jenkins-worker-base
Last synced: 11 months ago
JSON representation
Provide a base docker image for jenkins workers
- Host: GitHub
- URL: https://github.com/stelligent/jenkins-worker-base
- Owner: stelligent
- License: mit
- Created: 2016-10-02T18:36:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T19:59:35.000Z (over 6 years ago)
- Last Synced: 2025-05-14T19:17:25.696Z (about 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Overview
Provide a base docker image for jenkins workers based on RHEL7
# Create repository in ECR
Run the following to create a new repository in ECR for your new image:
```
aws cloudformation create-stack \
--stack-name jenkins-worker-base-repo \
--template-body file://cfn/repo.template
```
# Login to new repository
Run the following to login to ECR:
```
$(aws ecr get-login)
```
# Create docker image
Run the following to build a new image:
```
docker build -t 324320755747.dkr.ecr.us-west-2.amazonaws.com/jenkins-worker-base .
```
# Push docker image
Run the following to push the image to the ECR repo:
```
docker push 324320755747.dkr.ecr.us-west-2.amazonaws.com/jenkins-worker-base
```
# Credit
* https://github.com/jenkinsci/docker-jnlp-slave
* https://github.com/jenkinsci/docker-slave