Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dflourusso committed Apr 8, 2019
1 parent 24a6fe7 commit faf7471
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
id_rsa*
12 changes: 5 additions & 7 deletions docker-compose.yml
Expand Up @@ -3,20 +3,18 @@ version: '3.4'
services:
demo-app:
image: jwilder/whoami
stop_grace_period: 30s
deploy:
replicas: 3
restart_policy:
condition: on-failure
update_config:
failure_action: rollback
order: start-first
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:docker.local
- traefik.port=8000
- traefik.docker.network=webgateway

restart_policy:
condition: on-failure
update_config:
failure_action: rollback
order: start-first
networks:
- default
- traefik-public
Expand Down
54 changes: 54 additions & 0 deletions redhat/README.md
@@ -0,0 +1,54 @@
[Docs](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html-single/getting_started_with_containers/index)


Register
```
subscription-manager register
```

Find valid RHEL pool ID
```
subscription-manager list --available
```

Attatch
```
subscription-manager attach --pool=pool_id
```

```
subscription-manager repos --enable=rhel-7-server-rpms
subscription-manager repos --enable=rhel-7-server-extras-rpms
subscription-manager repos --enable=rhel-7-server-optional-rpms
```

Install docker
```
yum install docker device-mapper-libs device-mapper-event-libs
systemctl start docker.service
systemctl enable docker.service
systemctl status docker.service
sudo ln -s /usr/libexec/docker/docker-runc-current /usr/bin/docker-runc
systemctl restart docker.service
```

Test
```
docker run alpine date
```

Liberar porta no redhat para docker-machine
```
sudo firewall-cmd --zone=public --add-port=2376/tcp --permanent
sudo firewall-cmd --reload
``
Verificar se a porta foi liberada
```
firewall-cmd --list-all
```
Criar docker-machine
```
docker-machine create --driver generic --generic-ip-address=192.168.25.31 --generic-ssh-key ./id_rsa --generic-ssh-user root redhat
```

0 comments on commit faf7471

Please sign in to comment.