Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f004d548
Commit
f004d548
authored
Apr 08, 2021
by
Erik Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up vagrant provision scripts
Signed-off-by:
Erik Wilson
<
Erik.E.Wilson@gmail.com
>
parent
9a53fca8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vagrant
scripts/provision/vagrant
+2
-2
No files found.
scripts/provision/vagrant
View file @
f004d548
...
@@ -51,7 +51,7 @@ EOF
...
@@ -51,7 +51,7 @@ EOF
mkdir
-p
${
GOPATH
}
/bin
mkdir
-p
${
GOPATH
}
/bin
mkdir
-p
/go
mkdir
-p
/go
ln
-sf
$GOPATH
/bin /go/bin
ln
-sf
$GOPATH
/bin /go/bin
sed
':a;N;$!ba;s/\\\n/ /g'
<Dockerfile.dapper |
grep
'^RUN '
|
sed
-e
's/^RUN /
/'
>
/tmp/docker-run
sed
':a;N;$!ba;s/\\\n/ /g'
<Dockerfile.dapper |
grep
-E
'^(ARG|ENV|RUN) '
|
sed
-E
-e
's/^RUN //'
-e
's/^(ARG|ENV) +([^ =]*) *=? *(.*)/export \2="\3"
/'
>
/tmp/docker-run
export
BINDIR
=
/go/bin
export
BINDIR
=
/go/bin
export
GOPATH
=
/go
export
GOPATH
=
/go
export
HOME
=
/tmp
export
HOME
=
/tmp
...
@@ -70,7 +70,7 @@ EOF
...
@@ -70,7 +70,7 @@ EOF
# --- Utility function to download go
# --- Utility function to download go
download_go
()
{
download_go
()
{
goversion
=
$(
grep
"
^FROM "
Dockerfile.dapper |
sed
-e
's/^FROM
golang:\(.*\)-.*/\1/'
)
goversion
=
$(
grep
"
golang:"
Dockerfile.dapper |
sed
-e
's/.*
golang:\(.*\)-.*/\1/'
)
if
[
-z
"
$goversion
"
]
;
then
if
[
-z
"
$goversion
"
]
;
then
echo
'Cannot find version of go to fetch'
echo
'Cannot find version of go to fetch'
return
1
return
1
...
...
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