Compress Dokerfiles. Silly idea, though...
This project was created in the Relaxdays Code Challenge Vol. 1.
See the hackathon homepage for more information.
My participant ID in the challenge was: CC-VOL1-54
First you need to clone this repository:
git clone https://github.com/heinrichreimer/relaxdays-challenge-compression.git
cd relaxdays-challenge-compression/
-
Install Docker.
-
Build a Docker container with this project:
docker build -t relaxdays-challenge-compression .
-
Compress:
docker run -v $(pwd):/data -it relaxdays-challenge-compression --compress /data/Dockerfile
-
Decompress:
docker run -v $(pwd):/data -it relaxdays-challenge-compression --decompress /data/Dockerfile.compressed
-
Install dependencies:
pipenv install
-
Compress:
pipenv run python main.py --compress Dockerfile
-
Decompress:
pipenv run python main.py --decompress Dockerfile.compressed
-
The app is now running on
localhost:<PORT>
This repository is licensed under the MIT License.