Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javieraviles/zip-dockerfile
Docker image containing alpine + zip utility. This image is used for deployment and utility purposes.
https://github.com/javieraviles/zip-dockerfile
Last synced: 5 days ago
JSON representation
Docker image containing alpine + zip utility. This image is used for deployment and utility purposes.
- Host: GitHub
- URL: https://github.com/javieraviles/zip-dockerfile
- Owner: javieraviles
- Created: 2019-04-03T15:04:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T15:10:31.000Z (over 5 years ago)
- Last Synced: 2024-10-16T06:21:09.763Z (28 days ago)
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/javieraviles/zip
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ZIP Docker image
====================
This image is used for deployment and utility purposes. ZIP utility is installed.## Where it can be useful:
The idea is to have a clean alpine image with ZIP utility so certain stages of a CI pipeline can run make use of the utility.Use this container anywhere you need to use ZIP utility.
## How to use it inside a Jenkins pipeline
```
stage('get the code') {
agent {
docker {
image 'any-image-needed-to-do-this'
reuseNode true
}
}
steps {
...
// checkout code from git?
// build assets
// unit tests?
}
}
stage('ZIP directory to be uploaded or unzip something') {
agent {
docker {
image 'javieraviles/zip'
reuseNode true
}
}
steps {
echo "[INFO] Creating zip file..."
sh "zip -r ${PROJECT_NAME}.zip zip_file_name -x \".ignored-file\"; ls -al;"
}
}
```