good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
chat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
github
tinode
chat
Commits
2b1dd65e
Commit
2b1dd65e
authored
Feb 27, 2018
by
or-else
Browse files
Options
Downloads
Patches
Plain Diff
use buildstamp in docker and correct its instructions
parent
c0e2b126
Branches
Branches containing commit
Tags
v0.14.2
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
INSTALL.md
+3
-3
3 additions, 3 deletions
INSTALL.md
docker/tinode-server/Dockerfile
+2
-1
2 additions, 1 deletion
docker/tinode-server/Dockerfile
with
5 additions
and
4 deletions
INSTALL.md
+
3
−
3
View file @
2b1dd65e
...
...
@@ -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'`
"
```
Th
is build time
stamp will be sent by the server to the clients.
Th
e value of
`build
stamp
`
will be sent by the server to the clients.
-
Download javascript client for testing:
-
https://github.com/tinode/example-react-js/archive/master.zip
...
...
This diff is collapsed.
Click to expand it.
docker/tinode-server/Dockerfile
+
2
−
1
View file @
2b1dd65e
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment