Compare commits

..

1 Commits

Author SHA1 Message Date
mathiasme 2622e64213 Patched atomic calculation issue with 32 bits ARM architectures
Server was not working on my raspberry Pi. Appears the issue is related to the Go compiler (https://github.com/golang/go/issues/599). As read here https://github.com/census-instrumentation/opencensus-go/issues/587 , I switched these two lines in the counter struct and it now works.
2022-01-01 16:40:56 +00:00
4 changed files with 9 additions and 11 deletions

View File

@ -5,7 +5,7 @@ name: linux-test
steps:
- name: fetch
image: golang:1.17.5
image: golang
volumes:
- name: deps
path: /go
@ -18,7 +18,7 @@ steps:
- echo `date +%G-%m-%d-%H-%M` > BUILDDATE
- name: quality
image: golang:1.17.5
image: golang
volumes:
- name: deps
path: /go
@ -27,7 +27,7 @@ steps:
- staticcheck ./...
- name: units-tests
image: golang:1.17.5
image: golang
volumes:
- name: deps
path: /go
@ -35,7 +35,7 @@ steps:
- sh testing/tests.sh
- name: test-builda-app
image: golang:1.17.5
image: golang
volumes:
- name: deps
path: /go
@ -45,7 +45,6 @@ steps:
- name: notify-email
image: drillster/drone-email
pull: if-not-exists
settings:
host: build.openprivacy.ca
port: 25
@ -55,7 +54,6 @@ steps:
status: [failure]
- name: notify-gogs
pull: if-not-exists
image: openpriv/drone-gogs
when:
event: pull_request

View File

@ -30,7 +30,7 @@ The app takes the following environment variables
## Using the Server
When run the app will output standard log lines, one of which will contain the `serverbundle` in purple. This is the part you need to capture and import into a Cwtch client app so you can use the server for hosting groups
When run the app will output standard log lines, one of which will contain the `tofubundle` in purple. This is the part you need to capture and import into a Cwtch client app so you can use the server for hosting groups
## Docker
@ -42,8 +42,8 @@ or run our prebuild ones with
and run it. It stores all Cwtch data in a Volume at `/var/lib/cwtch` so if you want the server data to persist you would run
`docker run -v /var/lib/cwtch/server01:/var/lib/cwtch openpriv/cwtch-server`
`docker run openpriv/cwtch-server -v /var/lib/cwtch/server01:/var/lib/cwtch`
to create a persistent container you might try a command like:
`docker run --name cwtch -v /var/lib/cwtch/server01:/var/lib/cwtch --restart always openpriv/cwtch-server`
`docker run openpriv/cwtch-server --name cwtch -v /var/lib/cwtch/server01:/var/lib/cwtch --restart always`

View File

@ -96,7 +96,7 @@ func main() {
if *flagExportServer {
// Todo: change all to server export
ioutil.WriteFile(path.Join(serverConfig.ConfigDir, "serverbundle"), []byte(server.ServerBundle()), 0600)
ioutil.WriteFile(path.Join(serverConfig.ConfigDir, "serverbundle"), []byte(server.TofuBundle()), 0600)
}
// Graceful Stop

View File

@ -10,8 +10,8 @@ import (
)
type counter struct {
startTime time.Time
count uint64
startTime time.Time
}
// Counter providers a threadsafe counter to use for storing long running counts