https://github.com/graphform/swim-docker-example
https://github.com/graphform/swim-docker-example
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/graphform/swim-docker-example
- Owner: graphform
- License: apache-2.0
- Created: 2020-06-18T07:26:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-23T16:59:55.000Z (about 5 years ago)
- Last Synced: 2025-06-23T03:54:31.465Z (8 months ago)
- Language: Java
- Size: 128 KB
- Stars: 1
- Watchers: 9
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swim-docker-example
This is a small example application demonstrating how to build a Java project into a Docker image using the [Gradle docker plugin](https://github.com/bmuschko/gradle-docker-plugin).
The application itself is composed of two parts:
- A basic plane that stores some arbitrary information using a Value Lane and contains a Command Lane for updating it.
- A client application that is used for reading and writing to the plane.
The Docker image exposes port 9001 as this is what the server is configured to use in the `resources/server.recon` configuration file.
This project can be built into a Docker image as follows:
```
./gradlew dockerBuildImage
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
org.swimos/swim-docker-example 1.4 17d69579cdf8 1 second ago 342MB
```
## Making a new release
1) `git tag -a v1.x -m "Release v1.x"`
2) `git push --follow-tags`
Note: Only annotated tags are currently supported by the rust build so making a relese through the UI will not work!