good morning!!!!

Skip to content
Snippets Groups Projects
Commit 2b1dd65e authored by or-else's avatar or-else
Browse files

use buildstamp in docker and correct its instructions

parent c0e2b126
Branches
Tags v0.14.2
No related merge requests found
......@@ -16,11 +16,11 @@ See [instructions](./docker/README.md)
Note the required `-tags rethinkdb` build option.
You may also optionally define `main.buildstamp` for the server by adding a build option
You may also optionally define `main.buildstamp` for the server by adding a build option, for instance, with a timestamp:
```
-X main.buildstamp=`date -u '+%Y%m%dT%H:%M:%SZ'`
-ldflags "-X main.buildstamp=`date -u '+%Y%m%dT%H:%M:%SZ'`"
```
This build timestamp will be sent by the server to the clients.
The value of `buildstamp` will be sent by the server to the clients.
- Download javascript client for testing:
- https://github.com/tinode/example-react-js/archive/master.zip
......
......@@ -21,7 +21,8 @@ ENV TARGET_DB=$TARGET_DB
# Build the binary.
RUN go get -tags $TARGET_DB github.com/tinode/chat/server \
&& go install -tags $TARGET_DB github.com/tinode/chat/server
&& go install -tags $TARGET_DB -ldflags "-X main.buildstamp=${TARGET_DB}-`date -u '+%Y%m%dT%H:%M:%SZ'`" \
github.com/tinode/chat/server
# Download the demo app and the js bindings
RUN git clone --depth 1 https://github.com/tinode/example-react-js.git
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment