https://github.com/ofhouse/gh-actions-docker-access-host
Testing docker access to host from inside a container with GitHub Actions
https://github.com/ofhouse/gh-actions-docker-access-host
Last synced: about 1 month ago
JSON representation
Testing docker access to host from inside a container with GitHub Actions
- Host: GitHub
- URL: https://github.com/ofhouse/gh-actions-docker-access-host
- Owner: ofhouse
- Created: 2020-12-21T19:11:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-21T19:27:34.000Z (over 4 years ago)
- Last Synced: 2025-02-28T05:21:02.160Z (2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Actions: Access server from host inside of a docker container
> What's the hardest thing you can do with Docker?
> Access the host machine!With this example repo we do the impossible!
```
+----------------+
| |
| Server |
| |
| 0.0.0.0:3000 | <----------------------+
| | |
+----------------+ | fetch()
| | |
| Docker run | +-------------+-------------+
| | | |
+-------+--------+ | Client |
| | |
| | (Docker Container) |
+----------------> | |
+---------------------------+
```## Usage
Simply run the CI. Good Luck!
If you want to test it locally:
```sh
yarn
yarn build
yarn start
```