Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TFG_Informatica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
victarr
TFG_Informatica
Commits
27c3fc1c
Commit
27c3fc1c
authored
Jun 10, 2022
by
victarr
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
b18cc5c9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker files/scripts/detect_ampl.sh
+22
-0
22 additions, 0 deletions
docker files/scripts/detect_ampl.sh
with
22 additions
and
0 deletions
docker files/scripts/detect_ampl.sh
0 → 100644
+
22
−
0
View file @
27c3fc1c
#! /bin/bash
cd
/opt
# Extract the demo version archive, if it exists
if
[[
-f
ampl.linux64.tgz
]]
;
then
tar
xvf ampl.linux64.tgz
rm
ampl.linux64.tgz
fi
AMPL_BIN
=
$(
find
.
-name
ampl
-type
f
-executable
-prune
-print0
)
if
[[
-f
"
$AMPL_BIN
"
]]
;
then
AMPL_DIR
=
$(
dirname
$AMPL_BIN
)
echo
"Found ampl binary in
$AMPL_DIR
,
$(
$AMPL_BIN
--version
)
"
if
[[
"
$AMPL_DIR
"
!=
"./ampl"
]]
;
then
ln
-s
"
$AMPL_DIR
"
ampl
echo
"Added symlink
$(
ls
-l
ampl
)
"
fi
else
echo
"No AMPL binary found in
$(
pwd
)
"
exit
1
fi
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