Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
barry cho
Rancher
Commits
f7c5f03e
Commit
f7c5f03e
authored
8 years ago
by
Darren Shepherd
Browse files
Options
Download
Email Patches
Plain Diff
v1.1.0-rc4
parent
6894841c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/Dockerfile
+4
-3
server/Dockerfile
server/build-image.sh
+3
-2
server/build-image.sh
with
7 additions
and
5 deletions
+7
-5
server/Dockerfile
+
4
-
3
View file @
f7c5f03e
...
...
@@ -20,7 +20,7 @@ RUN chmod +x /usr/bin/giddyup /usr/bin/cluster-manager
COPY
bin/* /usr/bin/
ENV
CATTLE_HOME /var/lib/cattle
ENV
DEFAULT_CATTLE_API_UI_INDEX //releases.rancher.com/ui/1.1.1
1
ENV
DEFAULT_CATTLE_API_UI_INDEX //releases.rancher.com/ui/1.1.1
2
ENV
CATTLE_DB_CATTLE_DATABASE mysql
ENV
CATTLE_USE_LOCAL_ARTIFACTS true
ENV
no_proxy localhost,127.0.0.1,localaddress,.localdomain.com
...
...
@@ -33,7 +33,7 @@ COPY target/*static.tar.gz /s6-statics/
EXPOSE
8080
ENV
CATTLE_HOST_API_PROXY_MODE embedded
ENV
CATTLE_RANCHER_SERVER_
IMAGE
v1.1.0-rc
3
ENV
CATTLE_RANCHER_SERVER_
VERSION
v1.1.0-rc
4
ENV
CATTLE_RANCHER_COMPOSE_VERSION v0.8.5
ENV
DEFAULT_CATTLE_RANCHER_COMPOSE_LINUX_URL https://releases.rancher.com/compose/${CATTLE_RANCHER_COMPOSE_VERSION}/rancher-compose-linux-amd64-${CATTLE_RANCHER_COMPOSE_VERSION}.tar.gz
ENV
DEFAULT_CATTLE_RANCHER_COMPOSE_DARWIN_URL https://releases.rancher.com/compose/${CATTLE_RANCHER_COMPOSE_VERSION}/rancher-compose-darwin-amd64-${CATTLE_RANCHER_COMPOSE_VERSION}.tar.gz
...
...
@@ -41,7 +41,7 @@ ENV DEFAULT_CATTLE_RANCHER_COMPOSE_WINDOWS_URL https://releases.rancher.com/comp
ENV
DEFAULT_CATTLE_CATALOG_URL="library=https://github.com/rancher/rancher-catalog.git,community=https://github.com/rancher/community-catalog.git"
EXPOSE
3306
ENV
CATTLE_CATTLE_VERSION v0.165.
2
ENV
CATTLE_CATTLE_VERSION v0.165.
3
ADD
https://github.com/rancherio/cattle/releases/download/${CATTLE_CATTLE_VERSION}/cattle.jar /usr/share/cattle/
RUN
cd
/
&&
for
i
in
$(
ls
/s6-statics/
*
static.tar.gz
)
;
do
tar
-zxvf
$i
;
done
&&
rm
-rf
/s6-statics/
*
static.tar.gz
&&
\
...
...
@@ -57,5 +57,6 @@ VOLUME /var/lib/mysql /var/log/mysql /var/lib/cattle
ENV
DEFAULT_CATTLE_MACHINE_EXECUTE true
ENV
DEFAULT_CATTLE_COMPOSE_EXECUTOR_EXECUTE true
ENV
DEFAULT_CATTLE_CATALOG_EXECUTE true
ENV
CATTLE_RANCHER_SERVER_IMAGE rancher/server
CMD
["/usr/bin/s6-svscan", "/service"]
This diff is collapsed.
Click to expand it.
server/build-image.sh
+
3
-
2
View file @
f7c5f03e
...
...
@@ -9,8 +9,9 @@ if [ ! -e target/.done ]; then
touch
target/.done
fi
TAG
=
${
TAG
:-
$(
awk
'/CATTLE_RANCHER_SERVER_IMAGE/{print $3}'
Dockerfile
)
}
IMAGE
=
rancher/server:
${
TAG
}
TAG
=
${
TAG
:-
$(
awk
'/CATTLE_RANCHER_SERVER_VERSION/{print $3}'
Dockerfile
)
}
REPO
=
${
REPO
:-
$(
awk
'/CATTLE_RANCHER_SERVER_IMAGE/{print $3}'
Dockerfile
)
}
IMAGE
=
${
REPO
}
:
${
TAG
}
docker build
-t
"
${
IMAGE
}
"
.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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