-
Notifications
You must be signed in to change notification settings - Fork 0
Dockerfile added #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Dockerfile added #20
Changes from 5 commits
1b59e02
846b05f
0647c0a
4556bd9
d3c6f1a
0cae2ab
361b963
e05e844
e33eee6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM gradle:8-jdk17 | ||
WORKDIR /dev/mnt | ||
CMD ["./build.sh"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
# Task-Tracker-App | ||
|
||
The app is designed to work with the [Task-Tracker-Device](https://github.com/Task-Tracker-Systems/Task-Tracker-Device). | ||
|
||
## Build | ||
|
||
### Local | ||
Run the gradle build in each directory or use the `build.sh` file. | ||
|
||
### Docker | ||
Powershell | ||
```Powershell | ||
docker build -t task-tracker-systems/task-tracker-app:1 . | ||
dhebbeker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
docker run --rm -v ${PWD}:/dev/mnt task-tracker-systems/task-tracker-app:1 | ||
dhebbeker marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is the output of the build? Executing this line, the output ends with
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it should be in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The 'host' is the system which hosts Docker? After executing this (and the previous) line I don't have a Is the output to be executed by the user, this file?
|
||
``` | ||
|
||
### Github | ||
Latest build is available through [Github Actions](https://github.com/Task-Tracker-Systems/Task-Tracker-App/actions) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/sh | ||
chmod +x gradlew | ||
cd Task-Tracker-Entities | ||
if [ ! -d "gradle" ]; then | ||
ln -s ../gradle | ||
fi | ||
if [ ! -e "gradlew" ]; then | ||
ln -s ../gradlew | ||
fi | ||
./gradlew check | ||
./gradlew publishToMavenLocal | ||
|
||
cd ../Task-Tracker-Entities-Impl | ||
if [ ! -d "gradle" ]; then | ||
ln -s ../gradle | ||
fi | ||
if [ ! -e "gradlew" ]; then | ||
ln -s ../gradlew | ||
fi | ||
./gradlew check | ||
./gradlew publishToMavenLocal | ||
|
||
cd ../Task-Tracker-Usecases | ||
if [ ! -d "gradle" ]; then | ||
ln -s ../gradle | ||
fi | ||
if [ ! -e "gradlew" ]; then | ||
ln -s ../gradlew | ||
fi | ||
./gradlew check | ||
./gradlew publishToMavenLocal | ||
|
||
cd ../Task-Tracker-Usecases-SQLite-Impl | ||
if [ ! -d "gradle" ]; then | ||
ln -s ../gradle | ||
fi | ||
if [ ! -e "gradlew" ]; then | ||
ln -s ../gradlew | ||
fi | ||
./gradlew check | ||
./gradlew publishToMavenLocal | ||
|
||
cd ../Task-Tracker-CLI | ||
if [ ! -d "gradle" ]; then | ||
ln -s ../gradle | ||
fi | ||
if [ ! -e "gradlew" ]; then | ||
ln -s ../gradlew | ||
fi | ||
./gradlew check | ||
./gradlew assembleDist |
Uh oh!
There was an error while loading. Please reload this page.