Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
greppy.org-docker
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Greppy
greppy.org-docker
Commits
5469d6d0
Verified
Commit
5469d6d0
authored
Dec 04, 2018
by
Hermann Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected the debian distribution sources.
Signed-off-by:
Hermann Mayer
<
hermann.mayer92@gmail.com
>
parent
604a3012
Pipeline
#576
failed with stages
in 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
25 deletions
+19
-25
init
assets/init
+1
-11
install
assets/install
+18
-14
No files found.
assets/init
View file @
5469d6d0
...
...
@@ -179,17 +179,7 @@ case "$1" in
appHelp
;;
*
)
if
[
-x
$1
]
;
then
$1
else
prog
=
$(
which
$1
)
if
[
-n
"
${
prog
}
"
]
;
then
shift
1
$prog
$@
else
appHelp
fi
fi
exec
"
$@
"
;;
esac
...
...
assets/install
View file @
5469d6d0
...
...
@@ -5,7 +5,7 @@ set -e
# Config variables
# ------------------------------------------------------
USE_NPM_CACHE
=
1
USE_NPM_CACHE
=
0
USE_APT_CACHE
=
1
GREPPY_GLOB_VERSION
=
0.7.3
...
...
@@ -32,24 +32,30 @@ if [ "$USE_NPM_CACHE" = 1 ]; then
echo
'Setup npm cache proxy ...'
npm config
set
proxy http://storage.lan:28080/
npm config
set
https-proxy http://storage.lan:28080/
npm config
set
strict-ssl
false
npm config
set
strict-
'/mnt/backup/mongodb/'
ssl
false
echo
'Done.'
fi
echo
'Setup cache proxy sources.list ...'
if
[
"
$USE_APT_CACHE
"
=
1
]
;
then
cat
>
/etc/apt/sources.list
<<
EOF
deb http://storage.lan:3142/ftp.de.debian.org/debian
stabl
e main contrib non-free
deb http://storage.lan:3142/ftp.de.debian.org/debian
jessi
e main contrib non-free
deb http://storage.lan:3142/ftp.debian.org/debian/ wheezy-updates main contrib non-free
deb http://storage.lan:3142/security.debian.org/ wheezy/updates main contrib non-free
deb http://storage.lan:3142/ftp.de.debian.org/debian/ wheezy-backports main contrib non-free
deb http://storage.lan:3142/ftp.debian.org/debian jessie-backports main
deb http://storage.lan:3142/deb.debian.org/debian/ jessie-updates main contrib non-free
deb http://storage.lan:3142/deb.debian.org/debian-security jessie/updates main
EOF
else
cat
>
/etc/apt/sources.list
<<
EOF
deb http://ftp.de.debian.org/debian
stabl
e main contrib non-free
deb http://ftp.de.debian.org/debian
jessi
e main contrib non-free
deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://ftp.de.debian.org/debian/ wheezy-backports main contrib non-free
deb http://ftp.debian.org/debian jessie-backports main
deb http://deb.debian.org/debian/ jessie-updates main contrib non-free
deb http://deb.debian.org/debian-security jessie/updates main
EOF
fi
echo
'Done.'
...
...
@@ -69,8 +75,10 @@ echo 'Done.'
echo
'Install build and system dependencies ...'
apt-get
--no-install-recommends
-qy
-t
wheezy-backports
install
\
build-essential python2.7 screen wget openjdk-7-jre-headless locales
sudo
\
nginx-full supervisor
build-essential python2.7 screen wget openjdk-7-jre-headless
\
supervisor locales
sudo
git
apt-get
--no-install-recommends
-qy
install
\
nginx-full
echo
'Done.'
echo
'Setup locales ...'
...
...
@@ -78,27 +86,26 @@ echo 'Done.'
locale-gen en_US.UTF-8
dpkg-reconfigure locales
echo
'Done.'
)
&
jobApt
=
$!
)
# Run each global npm install in as job - for parallel execution
(
echo
'Install global npm greppy package ...'
npm
install
-g
greppy@
${
GREPPY_GLOB_VERSION
}
npm
install
-g
greppy@
${
GREPPY_GLOB_VERSION
}
--unsafe
echo
'Done.'
)
&
jobNpmGreppy
=
$!
(
echo
'Install global npm bower package ...'
npm
install
-g
bower@
${
BOWER_GLOB_VERSION
}
npm
install
-g
bower@
${
BOWER_GLOB_VERSION
}
--unsafe
echo
'Done.'
)
&
jobNpmBower
=
$!
(
echo
'Install global npm grunt-cli package ...'
npm
install
-g
grunt-cli@
${
GRUNTCLI_GLOB_VERSION
}
npm
install
-g
grunt-cli@
${
GRUNTCLI_GLOB_VERSION
}
--unsafe
echo
'Done.'
)
&
jobNpmGruntCli
=
$!
...
...
@@ -107,9 +114,6 @@ jobNpmGruntCli=$!
# Setup configs and runtume environment
# ------------------------------------------------------
# Wait for the apt job - we need wget for the git-export
wait
"
$jobApt
"
# Run this stuff as job - for parallel execution
(
echo
'Setup static supervisor configs ...'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment