Skip to content

Commit efe19e1

Browse files
Merge pull request #158 from ger-benjamin/fix_local_build
fix build: Update to alpine:3.24 to use go v1.24
2 parents 62acb8e + 883280a commit efe19e1

3 files changed

Lines changed: 23 additions & 16 deletions

File tree

Containerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.21 AS build
1+
FROM alpine:3.24 AS build
22

33
RUN apk add --no-cache go yarn make
44

@@ -10,7 +10,7 @@ ENV VUE_APP_COMMIT=${VUE_APP_COMMIT}
1010

1111
RUN make backend
1212

13-
FROM alpine:3.21
13+
FROM alpine:3.24
1414
ENV GIN_MODE=release
1515
ENV PORT=5000
1616
COPY --from=build /build/openvoxview /openvoxview

DEVELOPMENT.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,25 @@ OpenVoxView has two components, a small golang backend and a Vue 3 (Quasar) fron
1212
You can connect directly to an OpenVoxDB if you can access one,
1313
but for local development the recommendation is using [Crafty](https://github.com/voxpupuli/crafty)
1414

15+
## Backend development
16+
17+
For backend development you can use your favorite golang development environment and
18+
start directly with the development.
19+
20+
You need to have the ui/dist/spa folder, it can be generated by build the frontend, or it can be empty:
21+
`mkdir -p ui/dist/spa`
22+
23+
For settings see [CONFIGURATION.md](./CONFIGURATION.md)
24+
25+
Then run it with:
26+
```
27+
go mod tidy
28+
go run .
29+
```
30+
1531
## Frontend development
16-
you can execute `make develop-frontend` it will execute following steps:
32+
33+
You can execute `make develop-frontend` it will execute the following steps:
1734

1835
```
1936
cd ui
@@ -22,20 +39,8 @@ yarn build
2239
VUE_APP_BACKEND_BASE_ADDRESS=http://localhost:5000 yarn dev
2340
```
2441

25-
**VUE_APP_BACKEND_BASE_ADDRESS** is an environment variable which points to the backend for the development.
42+
**VUE_APP_BACKEND_BASE_ADDRESS** is an environment variable which points to the backend for the development.
2643
in production this will be automatically shipped by the backend
2744

28-
29-
## Backend development
30-
31-
For backend development you can use your favorite golang development environment and
32-
start directly with the development.
33-
34-
You need to have the ui/dist/spa folder, it can be generated by build the frontend or it can be empty:
35-
`mkdir -p ui/dist/spa`
36-
37-
for settings see [CONFIGURATION.md](./CONFIGURATION.md)
38-
39-
4045
# Releases
4146
For releases currently it only needs a git tag

ui/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
UI for openvoxview
44

5+
To run it locally, follow the [Development](../DEVELOPMENT.md) instructions.
6+
57
## Install the dependencies
68
```bash
79
yarn

0 commit comments

Comments
 (0)