Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

heinrichreimer/relaxdays-challenge-compression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ§‘β€πŸ’» relaxdays-challenge-compression

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

Usage

First you need to clone this repository:

git clone https://github.com/heinrichreimer/relaxdays-challenge-compression.git
cd relaxdays-challenge-compression/

Docker container

  1. Install Docker.

  2. Build a Docker container with this project:

    docker build -t relaxdays-challenge-compression .
  3. Compress:

    docker run -v $(pwd):/data -it relaxdays-challenge-compression --compress /data/Dockerfile
  4. Decompress:

    docker run -v $(pwd):/data -it relaxdays-challenge-compression --decompress /data/Dockerfile.compressed

Local machine

  1. Install Python 3, pipx, and Pipenv

  2. Install dependencies:

    pipenv install
  3. Compress:

    pipenv run python main.py --compress Dockerfile
  4. Decompress:

    pipenv run python main.py --decompress Dockerfile.compressed
  5. The app is now running on localhost:<PORT>

License

This repository is licensed under the MIT License.

About

πŸ§‘β€πŸ’» Dockerfile compression.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project