Skip to content

Commit

Permalink
Add Dockerfile for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cfanatic committed Jan 29, 2020
1 parent 5010f2f commit 213050c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 25 deletions.
17 changes: 0 additions & 17 deletions Dockerfile

This file was deleted.

11 changes: 11 additions & 0 deletions Dockerfile.linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM therecipe/qt:linux_debian_9 AS qt

RUN apt-get update
RUN apt-get -y install git

WORKDIR /home/user/work/src/github.com/cfanatic/
RUN go get -v -d github.com/cfanatic/go-expensegui

ENV QT_MXE_ARCH=amd64
RUN qtmoc desktop go-expensegui
RUN qtdeploy build desktop github.com/cfanatic/go-expensegui
9 changes: 9 additions & 0 deletions Dockerfile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM therecipe/qt:windows_64_static as qt

RUN apt-get update
RUN apt-get -y install git

WORKDIR /home/user/work/src/github.com/cfanatic/
RUN go get -v -d github.com/cfanatic/go-expensegui

RUN qtdeploy build windows github.com/cfanatic/go-expensegui
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It helps you analyze your monthly and yearly expenses by giving answers to follo
4. Where are potentials to reduce costs?

The graphical user interface shall simplify the process of importing and labeling account statement transactions.
Labeling is done in automatic fashion whenever a similar transaction can be found in the database.
Labeling is done in automatic fashion whenever a similar transaction is found in the database.

Three sample account statements can be found in folder `res/`.

Expand All @@ -37,7 +37,7 @@ go build

```bash
docker pull therecipe/qt:linux_debian_9
docker build -t expensegui:latest -f Dockerfile .
docker build -t expensegui:latest -f Dockerfile.linux .
docker run --name expensegui expensegui:latest
docker cp expensegui:/home/user/work/src/github.com/cfanatic/go-expensegui/deploy/linux/go-expensegui .
```
Expand All @@ -46,7 +46,7 @@ docker cp expensegui:/home/user/work/src/github.com/cfanatic/go-expensegui/deplo

```bash
docker pull therecipe/qt:windows_64_static
docker build -t expensegui:latest -f Dockerfile .
docker build -t expensegui:latest -f Dockerfile.win .
docker run --name expensegui expensegui:latest
docker cp expensegui:/home/user/work/src/github.com/cfanatic/go-expensegui/deploy/windows/go-expensegui.exe .
```
Expand All @@ -60,11 +60,7 @@ docker pull mongo:latest
docker run -d -p 27017:27017 --name expenses mongo:latest
```

Run the program:

```bash
./go-expensegui
```
Run the program.

Import each account statement and specify cost type labels for all transactions:

Expand Down

0 comments on commit 213050c

Please sign in to comment.