Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bdemers/docker-example
https://github.com/bdemers/docker-example
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bdemers/docker-example
- Owner: bdemers
- Created: 2020-02-20T03:30:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T17:42:14.000Z (over 1 year ago)
- Last Synced: 2024-10-03T15:16:17.764Z (about 1 month ago)
- Language: Vue
- Size: 23.4 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker for Developers
Example code for "Docker for Developers" talk.
This application has three parts, Postgres, a Java backend app, and a Vue.js frontend.
## Prerequisites
* Docker
* Java 8+## Build
1. Build the Java backend:
```sh
cd server
./mvnw package
```2. Start application:
```sh
cd .. # you should be in this directory
docker-compose up
```## Demo script
```txt
docker ps
docker container listdocker run alpine echo "hello"
docker run -it alpine /bin/sh# inside the container run:
uname -a
hostname# shell into the running container
docker exec -it /bin/shdocker images
docker image listdocker image rm
docker rmi
```