Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
win64-builder
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
docker
rust
win64-builder
Commits
5e02d2e5
Commit
5e02d2e5
authored
7 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
add entry.sh
parent
505213de
No related branches found
No related tags found
No related merge requests found
Pipeline
#2684
canceled
7 years ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bootstrap.sh
+0
-31
0 additions, 31 deletions
bootstrap.sh
entry.sh
+19
-0
19 additions, 0 deletions
entry.sh
with
19 additions
and
31 deletions
bootstrap.sh
deleted
100644 → 0
+
0
−
31
View file @
505213de
#!/bin/bash
# Test environment
if
[[
!
-d
/builds
]]
;
then
echo
"In order to use this image, you must mount the working directory to /builds"
exit
1
fi
REFERENCE
=
$(
ls
-d
/builds/
*
|
head
-1
)
if
[[
-z
"
${
REFERENCE
}
"
]]
;
then
echo
"Aborting because of empty working directory"
exit
1
fi
# Prepare environment
_durs_prepare
()
{
touch
/durs/reference
||
exit
1
chown
--reference
"
${
REFERENCE
}
"
/durs/reference
||
exit
1
chown
-R
durs:durs /builds/
*
||
exit
1
}
# Terminate
_durs_terminate
()
{
chown
-R
--reference
/durs/reference /builds/
*
||
exit
1
rm
-f
/durs/reference
exit
${
1
}
}
# Prepare and execute building
_durs_prepare
su - durs
_durs_terminate
$?
This diff is collapsed.
Click to expand it.
entry.sh
0 → 100644
+
19
−
0
View file @
5e02d2e5
#!/bin/bash
set
-e
export
HOME
=
/tmp/home
mkdir
-p
$HOME
# Initialize the wine prefix (virtual windows installation)
export
WINEPREFIX
=
/tmp/wine
mkdir
-p
$WINEPREFIX
# FIXME: Make the wine prefix initialization faster
wineboot &> /dev/null
# Put libstdc++ and some other mingw dlls in WINEPATH
# This must work for x86_64 and i686
P1
=
$(
dirname
$(
find /usr
-name
libwinpthread-1.dll
))
export
WINEPATH
=
"
$(
ls
-d
/usr/lib/gcc/
*
-w64-mingw32
/
*
win32
)
;
$P1
"
exec
"
$@
"
This diff is collapsed.
Click to expand it.
Éloïs
@librelois
mentioned in commit
2c1c1525
·
6 years ago
mentioned in commit
2c1c1525
mentioned in commit 2c1c152508da6d28aa0bce38e71d45bb2180dd1f
Toggle commit list
Éloïs
@librelois
mentioned in merge request
!1 (closed)
·
6 years ago
mentioned in merge request
!1 (closed)
mentioned in merge request !1
Toggle commit list
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