ESL-devenv/README.md
2021-12-10 16:25:55 +01:00

70 lines
1.6 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
│   ├── empty.sh
│   ├── run.sh
│   └── sync.sh
├── define.conf -> .env
├── docker-compose.yml.esl
├── docker-compose.yml.repo
├── Dockerfile
├── DockerFile
│   ├── Dockerfile.esl
│   └── Dockerfile.repo
├── generate_env.sh
├── README.md
└── template
3 directories, 10 files
```
## Use
### 1./ Build Docker image
```
guillaume@virgile:~/centos79repo/$ ./generate_env.sh image
Delete Dockerfile ... : OK
generate Dockerfile Esl compilator ... : OK
Generate compilator Docker image ... : OK
Delete Dockerfile ... : OK
generate Dockerfile CentOS REPO ... : OK
Generate Repo Docker image ... : OK
------ Log Compil -----------
/tmp/DockerCompilatorGenerate.log
/tmp/DockerRepoGenerate.log
-----------------------------
```
### 2./ Start sync repositories t
```
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/