Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Cozy Stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
Cozy Stack
Commits
0dfdfc6b
Commit
0dfdfc6b
authored
8 years ago
by
Pierre Guilleminot
Browse files
Options
Downloads
Patches
Plain Diff
Move cozy-stack COPY to end of file for better caching
parent
cebc4f57
Branches
renovate/github.com-google-uuid-1.x
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/Dockerfile
+6
-5
6 additions, 5 deletions
scripts/Dockerfile
scripts/build.sh
+4
-0
4 additions, 0 deletions
scripts/build.sh
with
10 additions
and
5 deletions
scripts/Dockerfile
+
6
−
5
View file @
0dfdfc6b
...
@@ -62,11 +62,6 @@ RUN curl -fsSL "$CADDY_DOWNLOAD_URL" -o caddy.tar.gz \
...
@@ -62,11 +62,6 @@ RUN curl -fsSL "$CADDY_DOWNLOAD_URL" -o caddy.tar.gz \
&&
rm
caddy.tar.gz
&&
rm
caddy.tar.gz
# cozy-stack
COPY
cozy-stack /usr/bin
RUN
chmod
+x /usr/bin/cozy-stack
COPY
cozy-app-dev.sh /usr/bin
RUN
chmod
+x /usr/bin/cozy-app-dev.sh
ENV
COZY_PROXY_HOST cozy.local
ENV
COZY_PROXY_HOST cozy.local
ENV
COZY_PROXY_PORT 8080
ENV
COZY_PROXY_PORT 8080
...
@@ -77,6 +72,12 @@ ENV COZY_STACK_PATH cozy-stack
...
@@ -77,6 +72,12 @@ ENV COZY_STACK_PATH cozy-stack
RUN
mkdir
-p
/data/cozy-app
&&
mkdir
-p
/data/cozy-storage
RUN
mkdir
-p
/data/cozy-app
&&
mkdir
-p
/data/cozy-storage
# cozy-stack
COPY
cozy-app-dev.sh /usr/bin
RUN
chmod
+x /usr/bin/cozy-app-dev.sh
COPY
cozy-stack /usr/bin
RUN
chmod
+x /usr/bin/cozy-stack
EXPOSE
8080 5984
EXPOSE
8080 5984
CMD
couchdb 2>/dev/null 1>/dev/null & \
CMD
couchdb 2>/dev/null 1>/dev/null & \
...
...
This diff is collapsed.
Click to expand it.
scripts/build.sh
+
4
−
0
View file @
0dfdfc6b
...
@@ -107,10 +107,12 @@ do_install() {
...
@@ -107,10 +107,12 @@ do_install() {
do_prepare_ldflags
do_prepare_ldflags
printf
"installing cozy-stack in
${
GOPATH
}
... "
go
install
-ldflags
"
\
go
install
-ldflags
"
\
-X github.com/cozy/cozy-stack/pkg/config.Version=
${
VERSION_STRING
}
\
-X github.com/cozy/cozy-stack/pkg/config.Version=
${
VERSION_STRING
}
\
-X github.com/cozy/cozy-stack/pkg/config.BuildTime=
${
BUILD_TIME
}
\
-X github.com/cozy/cozy-stack/pkg/config.BuildTime=
${
BUILD_TIME
}
\
-X github.com/cozy/cozy-stack/pkg/config.BuildMode=
${
BUILD_MODE
}
"
-X github.com/cozy/cozy-stack/pkg/config.BuildMode=
${
BUILD_MODE
}
"
echo
"ok"
}
}
do_build
()
{
do_build
()
{
...
@@ -125,12 +127,14 @@ do_build() {
...
@@ -125,12 +127,14 @@ do_build() {
BINARY
=
"
${
1
}
"
BINARY
=
"
${
1
}
"
fi
fi
printf
"building cozy-stack in
${
BINARY
}
... "
go build
-ldflags
"
\
go build
-ldflags
"
\
-X github.com/cozy/cozy-stack/pkg/config.Version=
${
VERSION_STRING
}
\
-X github.com/cozy/cozy-stack/pkg/config.Version=
${
VERSION_STRING
}
\
-X github.com/cozy/cozy-stack/pkg/config.BuildTime=
${
BUILD_TIME
}
\
-X github.com/cozy/cozy-stack/pkg/config.BuildTime=
${
BUILD_TIME
}
\
-X github.com/cozy/cozy-stack/pkg/config.BuildMode=
${
BUILD_MODE
}
-X github.com/cozy/cozy-stack/pkg/config.BuildMode=
${
BUILD_MODE
}
"
\
"
\
-o
"
${
BINARY
}
"
-o
"
${
BINARY
}
"
echo
"ok"
}
}
# The deploy command will build a new release and deploy it on a
# The deploy command will build a new release and deploy it on a
...
...
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