ESL-devenv/README.md

62 lines
1.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Repo sync docker for Centos 7.9.2009
## Struct
```
.
├── bin
│   └── sync.sh
├── data
│   ├── log
│   └── repo
├── docker-compose.yml
└── Dockerfile
└── README.md
4 directories, 4 files
```
## Use
### 1./ Build Docker image : c7repo
```
guillaume@virgile:~/centos79repo/$ docker build . -t c7repo
Sending build context to Docker daemon 7.68kB
Step 1/10 : FROM centos:7.9.2009
---> eeb6ee3f44bd
[...]
Step 10/10 : CMD ["/bin/sync.sh"]
---> Running in 8ea78a88d33d
Removing intermediate container 8ea78a88d33d
---> be87c9d3dc38
Successfully built be87c9d3dc38
Successfully tagged c7repo:latest
```
### 2./ Start sync with docker compose
```
guillaume@virgile:~/centos79repo$ docker-compose up -d
[+] Running 1/1
⠿ Container centos79repo-c7repo-1 Started
```
### 3./ Wait ... for a long time :)
while the process or the docker instance c7repo is/are running the download is running too ...
```
guillaume@virgile:~/centos79repo$ ps axf | grep sync.sh| grep -v grep
936675 ? Ss 0:00 \_ /bin/bash /bin/sync.sh
guillaume@virgile:~/centos79repo$ docker ps | grep c7re
44b350ff0c9d c7repo "/bin/sync.sh" About a minute ago Up About a minute centos79repo-c7repo-1
```
### 4./ Check the dl
You have log in ./data/log/ or each repositories (base, epel, extras, updates)
The Repositories are in ./data/repo/