Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
barry cho
Rancher
Commits
789e4ef0
Commit
789e4ef0
authored
4 years ago
by
Darren Shepherd
Browse files
Options
Download
Email Patches
Plain Diff
Make scripts/package work locally
parent
b3b48706
master
cfbd0d3
dev
kinarashah-patch-1
release/v2.6
release/v2.6.2
revert-35793-temporarily-disable-fossa
snyk-fix-0564176c790784e319dbf499a8a4b2b8
update-issue-templates
Tags unavailable
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+2
-0
.gitignore
scripts/k3s-images.sh
+7
-3
scripts/k3s-images.sh
scripts/package
+2
-2
scripts/package
scripts/run
+1
-1
scripts/run
scripts/test
+1
-1
scripts/test
with
13 additions
and
7 deletions
+13
-7
.gitignore
+
2
-
0
View file @
789e4ef0
...
...
@@ -8,7 +8,9 @@
/.idea
/cmd/agent/agent
/package/data.json
/package/k3s-airgap-images.tar
/package/rancher
/package/rancher-namespace.yaml
/package/rancher.yaml
/package/agent
/tests/MANIFEST
...
...
This diff is collapsed.
Click to expand it.
scripts/k3s-images.sh
+
7
-
3
View file @
789e4ef0
...
...
@@ -5,6 +5,10 @@ cd $(dirname $0)/..
mkdir
-p
bin
images
=
$(
grep
-e
'docker.io/rancher/pause'
-e
'docker.io/rancher/coredns-coredns'
/usr/tmp/k3s-images.txt
)
xargs
-n1
docker pull
<<<
"
${
images
}
"
docker save
-o
./bin/k3s-airgap-images.tar
${
images
}
if
[
-e
/usr/tmp/k3s-images.txt
]
;
then
images
=
$(
grep
-e
'docker.io/rancher/pause'
-e
'docker.io/rancher/coredns-coredns'
/usr/tmp/k3s-images.txt
)
xargs
-n1
docker pull
<<<
"
${
images
}
"
docker save
-o
./bin/k3s-airgap-images.tar
${
images
}
else
touch
bin/k3s-airgap-images.tar
fi
This diff is collapsed.
Click to expand it.
scripts/package
+
2
-
2
View file @
789e4ef0
#!/bin/bash
set
-e
./k3s-images.sh
source
$(
dirname
$0
)
/version
ARCH
=
${
ARCH
:-
"amd64"
}
...
...
@@ -13,6 +11,8 @@ CHART_DEFAULT_BRANCH=${CHART_DEFAULT_BRANCH:-"dev-v2.6"}
cd
$(
dirname
$0
)
/../package
../scripts/k3s-images.sh
cp
../bin/rancher.yaml ../bin/rancher-namespace.yaml ../bin/rancher ../bin/agent ../bin/data.json ../bin/k3s-airgap-images.tar
.
IMAGE
=
${
REPO
}
/rancher:
${
TAG
}
...
...
This diff is collapsed.
Click to expand it.
scripts/run
+
1
-
1
View file @
789e4ef0
...
...
@@ -14,4 +14,4 @@ mkdir -p build/testdata
cd
build/testdata
export
KUBECONFIG
=
export
CATTLE_DEV_MODE
=
yes
exec
../../
$CMD
--add-local
=
true
--features
=
multi-cluster-management
=
true
exec
../../
$CMD
This diff is collapsed.
Click to expand it.
scripts/test
+
1
-
1
View file @
789e4ef0
...
...
@@ -26,7 +26,7 @@ if [ ${ARCH} == arm64 ]; then
fi
echo
Starting rancher server
$(
dirname
$0
)
/run
&> /dev/null
&
$(
dirname
$0
)
/run
>
/tmp/rancher.log 2>&1
&
PID
=
$!
trap
cleanup
exit
...
...
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
Menu
Projects
Groups
Snippets
Help