Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioroboticslab
robofish
docker
Commits
bf621a47
Commit
bf621a47
authored
5 years ago
by
calrama
Browse files
Options
Downloads
Patches
Plain Diff
Clean up helper scripts
parent
92fc64b9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ubuntu18.04/base/Dockerfile
+0
-1
0 additions, 1 deletion
ubuntu18.04/base/Dockerfile
ubuntu18.04/base/profile.sh
+0
-24
0 additions, 24 deletions
ubuntu18.04/base/profile.sh
windows1809/base/Profile.ps1
+0
-50
0 additions, 50 deletions
windows1809/base/Profile.ps1
with
0 additions
and
75 deletions
ubuntu18.04/base/Dockerfile
+
0
−
1
View file @
bf621a47
...
@@ -127,4 +127,3 @@ ADD agki-nas01.imp.fu-berlin.de-ca-cert.crt /usr/local/share/ca-certificates/agk
...
@@ -127,4 +127,3 @@ ADD agki-nas01.imp.fu-berlin.de-ca-cert.crt /usr/local/share/ca-certificates/agk
RUN
update-ca-certificates
RUN
update-ca-certificates
RUN
apt-get clean
RUN
apt-get clean
COPY
profile.sh /etc/profile.d/robofish.sh
This diff is collapsed.
Click to expand it.
ubuntu18.04/base/profile.sh
deleted
100644 → 0
+
0
−
24
View file @
92fc64b9
function
gitlab-fetch-artifacts
{
curl
-o
artifacts.zip
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://git.imp.fu-berlin.de/api/v4/projects/
$1
/jobs/artifacts/
$2
/download?job=
$3
"
7z e artifacts.zip
;
rm
artifacts.zip
}
function
gitlab-trigger-pipeline
{
curl
--request
POST
--form
"token=
$2
"
--form
"ref=
$3
"
"https://git.imp.fu-berlin.de/api/v4/projects/
$1
/trigger/pipeline"
}
function
cmake-extract-package
{
7z e
$1
-
*
.tar.xz
;
rm
$1
-
*
.tar.xz
7z x
$1
-
*
.tar
;
rm
$1
-
*
.tar
mkdir
-p
vendor
mv
$1
-
*
vendor/
$1
}
function
cmake-enable-package-discovery
{
ln
-s
$(
realpath
vendor/
$1
)
/usr/local/
$1
}
function
cmake-integrate-package
{
cmake-extract-package
$1
cmake-enable-package-discovery
$1
}
This diff is collapsed.
Click to expand it.
windows1809/base/Profile.ps1
+
0
−
50
View file @
bf621a47
#
# Sets up Visual Studio Development environment
#
function
VSDevEnv
{
pushd
"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/Common7/Tools"
cmd
/c
"VsDevCmd.bat
$args
& set"
|
foreach
{
if
(
$_
-match
"="
)
{
$v
=
$_
.
split
(
"="
);
set-item
-force
-path
"ENV:\
$(
$v
[
0
]
)
"
-value
"
$(
$v
[
1
]
)
"
}
}
popd
}
#
#
# Sets exit to error when the command fails
# Sets exit to error when the command fails
#
#
...
@@ -26,39 +12,3 @@ function Must-Run {
...
@@ -26,39 +12,3 @@ function Must-Run {
Exit
(
1
)
Exit
(
1
)
}
}
}
}
#
# Fetches GitLab CI job artifacts
#
function
GitLab-Fetch-Artifacts
{
&
curl.exe
-o
artifacts.zip
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://git.imp.fu-berlin.de/api/v4/projects/
$(
$args
[
0
]
)
/jobs/artifacts/
$(
$args
[
1
]
)
/download?job=
$(
$args
[
2
]
)
"
7
z
e
artifacts.zip
;
Remove-Item
-Force
artifacts.zip
}
#
# Unpacks a CMake package from its tarball into the vendor directory
#
function
CMake-Extract-Package
{
$name
=
$args
[
0
]
7
z
e
$name
-*.
tar
.
xz
;
Remove-Item
-Force
$name
-*.
tar
.
xz
7z
x
$name
-*.
tar
;
Remove-Item
-Force
$name
-*.
tar
New-Item
-ItemType
Directory
-Force
'vendor'
Move-Item
$name
-*
vendor/
$name
}
#
# Enable discovery of a CMake package in the vendor directory via find_package
#
function
CMake-Enable-Package-Discovery
{
$name
=
$args
[
0
]
&
cmd.exe
/c
mklink
/J
"C:/Program Files/
$name
"
"
$(
resolve-path
vendor/
$name
)
"
}
#
# Sets up a tarballed CMake package for find_package discovery
#
function
CMake-Integrate-Package
{
$name
=
$args
[
0
]
CMake-Extract-Package
$name
CMake-Enable-Package-Discovery
$name
}
This diff is collapsed.
Click to expand it.
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