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
bc4fc09a
Commit
bc4fc09a
authored
8 years ago
by
Pierre Guilleminot
Browse files
Options
Downloads
Patches
Plain Diff
Move scripts in scripts/
parent
40367195
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
scripts/Dockerfile
+4
-0
4 additions, 0 deletions
scripts/Dockerfile
scripts/build.sh
+2
-2
2 additions, 2 deletions
scripts/build.sh
scripts/coverage.sh
+0
-0
0 additions, 0 deletions
scripts/coverage.sh
scripts/dev.sh
+27
-27
27 additions, 27 deletions
scripts/dev.sh
with
33 additions
and
29 deletions
devtool
/Dockerfile
→
scripts
/Dockerfile
+
4
−
0
View file @
bc4fc09a
# This Dockerfile should be used to create an development environment to
# develop applications for cozy-stack. It installs go and couchdb 2.
# It should not be used for hosting your cozy cloud in production.
FROM
debian:jessie
FROM
debian:jessie
ENV
COUCHDB_VERSION 2.0.0
ENV
COUCHDB_VERSION 2.0.0
...
...
This diff is collapsed.
Click to expand it.
build.sh
→
scripts/
build.sh
+
2
−
2
View file @
bc4fc09a
#!/
bin/
bash
#!/
usr/bin/env
bash
set
-e
set
-e
COZY_ENV_DFL
=
production
COZY_ENV_DFL
=
production
...
@@ -7,7 +7,7 @@ COZY_ENV_DFL=production
...
@@ -7,7 +7,7 @@ COZY_ENV_DFL=production
[
-z
${
COZY_DEPLOY_USER
}
]
&&
COZY_DEPLOY_USER
=
${
USER
}
[
-z
${
COZY_DEPLOY_USER
}
]
&&
COZY_DEPLOY_USER
=
${
USER
}
pushd
`
dirname
$0
`
>
/dev/null
pushd
`
dirname
$0
`
>
/dev/null
WORK_DIR
=
`
pwd
`
WORK_DIR
=
$(
dirname
"
`
pwd
`
"
)
popd
>
/dev/null
popd
>
/dev/null
if
[
-r
${
WORK_DIR
}
/local.env
]
;
then
if
[
-r
${
WORK_DIR
}
/local.env
]
;
then
...
...
This diff is collapsed.
Click to expand it.
coverage.sh
→
scripts/
coverage.sh
+
0
−
0
View file @
bc4fc09a
File moved
This diff is collapsed.
Click to expand it.
devtool
/dev.sh
→
scripts
/dev.sh
+
27
−
27
View file @
bc4fc09a
#!/
bin/
sh
#!/
usr/bin/env ba
sh
[
-z
${
COZY_DEV_HOST
}
]
&&
COZY_DEV_HOST
=
"cozy.local"
[
-z
${
COZY_DEV_HOST
}
]
&&
COZY_DEV_HOST
=
"cozy.local"
[
-z
${
COZY_DEV_PORT
}
]
&&
COZY_DEV_PORT
=
"8080"
[
-z
${
COZY_DEV_PORT
}
]
&&
COZY_DEV_PORT
=
"8080"
...
@@ -14,31 +14,31 @@ if [ -d ${COZY_STACK_PATH} ] && [ -f ${COZY_STACK_PATH}/cozy-stack ]; then
...
@@ -14,31 +14,31 @@ if [ -d ${COZY_STACK_PATH} ] && [ -f ${COZY_STACK_PATH}/cozy-stack ]; then
fi
fi
usage
()
{
usage
()
{
echo
"Usage:
${
0
}
[-h] [-d <app path>] [–v <stack version>]"
echo
-e
"Usage:
${
0
}
[-h] [-d <app path>] [–v <stack version>]"
echo
"
\n
Environment variables"
echo
-e
"
\n
Environment variables"
echo
"
\n
COZY_DEV_HOST"
echo
-e
"
\n
COZY_DEV_HOST"
echo
" specify the hostname or domain on which the dev server is listening"
echo
-e
" specify the hostname or domain on which the dev server is listening"
echo
" to incoming requests. default: dev.cozycloud.cc"
echo
-e
" to incoming requests. default: dev.cozycloud.cc"
echo
"
\n
COZY_DEV_PORT"
echo
-e
"
\n
COZY_DEV_PORT"
echo
" specify the port on which the dev server is listening."
echo
-e
" specify the port on which the dev server is listening."
echo
" default: 8080."
echo
-e
" default: 8080."
echo
"
\n
COZY_STACK_PATH"
echo
-e
"
\n
COZY_STACK_PATH"
echo
" specify the path of the cozy-stack binary folder or the binary"
echo
-e
" specify the path of the cozy-stack binary folder or the binary"
echo
" itself. default:
\"\$
GOPATH/bin
\"
."
echo
-e
" itself. default:
\"\$
GOPATH/bin
\"
."
echo
"
\n
COZY_STACK_HOST"
echo
-e
"
\n
COZY_STACK_HOST"
echo
" specify the hostname on which the cozy-stack is launched."
echo
-e
" specify the hostname on which the cozy-stack is launched."
echo
" default: localhost."
echo
-e
" default: localhost."
echo
"
\n
COZY_STACK_PORT"
echo
-e
"
\n
COZY_STACK_PORT"
echo
" specify the port on which the cozy-stack is listening."
echo
-e
" specify the port on which the cozy-stack is listening."
echo
" default: 8080."
echo
-e
" default: 8080."
echo
"
\n
COUCHDB_ENABLE"
echo
-e
"
\n
COUCHDB_ENABLE"
echo
" specify whether or not this script should launch couchdb."
echo
-e
" specify whether or not this script should launch couchdb."
echo
" default: 1"
echo
-e
" default: 1"
echo
"
\n
COUCHDB_HOST"
echo
-e
"
\n
COUCHDB_HOST"
echo
" specify the host of the couchdb database. default: localhost"
echo
-e
" specify the host of the couchdb database. default: localhost"
echo
"
\n
COUCHDB_PORT"
echo
-e
"
\n
COUCHDB_PORT"
echo
" specify the port of the couchdb database. default: 5984"
echo
-e
" specify the port of the couchdb database. default: 5984"
}
}
if
[
-n
"
${
COZY_STACK_PATH
}
"
]
&&
[
!
-f
"
${
COZY_STACK_PATH
}
"
]
;
then
if
[
-n
"
${
COZY_STACK_PATH
}
"
]
&&
[
!
-f
"
${
COZY_STACK_PATH
}
"
]
;
then
...
@@ -214,7 +214,7 @@ check_hosts() {
...
@@ -214,7 +214,7 @@ check_hosts() {
}
}
echo_err
()
{
echo_err
()
{
>
&2
echo
"error:
${
1
}
"
>
&2
echo
-e
"error:
${
1
}
"
}
}
while
getopts
":hd:v:"
optname
;
do
while
getopts
":hd:v:"
optname
;
do
...
...
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