Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
halleyUIS
Software
arti
Commits
b2cee28f
"...ejercicios-clase-02-datos.git" did not exist on "7ae0328a2e65ec3ca6360caf05d50e0d1da5b940"
Commit
b2cee28f
authored
2 years ago
by
Alexander Martínez Méndez
Browse files
Options
Downloads
Patches
Plain Diff
correcciones de sintaxis
parent
ee5e606e
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
Dockerfile
+0
-3
0 additions, 3 deletions
Dockerfile
do_analysis_redcca.sh
+1
-1
1 addition, 1 deletion
do_analysis_redcca.sh
do_sims_redcca.sh
+4
-4
4 additions, 4 deletions
do_sims_redcca.sh
with
5 additions
and
8 deletions
Dockerfile
+
0
−
3
View file @
b2cee28f
...
...
@@ -7,8 +7,6 @@ ENV LAGO_ARTI=/opt/arti
ENV
wdir="/opt"
WORKDIR
${wdir}
COPY
do_analysis_redcca.sh /opt/arti/analysis/
ARG
CRK_VERSION="77402"
ARG
ARTI_BRANCH="master"
ARG
arti_pack="vim gcc gcc-c++ gcc-gfortran screen curl csh make perl perl-Data-Dumper git perl-Switch file unzip bzip2"
...
...
@@ -23,5 +21,4 @@ RUN ["/bin/bash", "-c", "yum -y update \
&& ./lago-arti.sh
\
&& source
${
HOME
}
/.bashrc
\
&& make"
]
&& chmod +x /opt/arti/analysis/do_analysis_redcca.sh
CMD
bash
This diff is collapsed.
Click to expand it.
do_analysis_redcca.sh
+
1
−
1
View file @
b2cee28f
!
#/bin/bash
#
!
/bin/bash
for
i
in
DAT??????.bz2
;
do
j
=
$(
echo
$i
|
sed
-e
's/.bz2//'
)
;
u
=
$(
echo
$j
|
sed
-e
's/DAT//'
)
;
bzip2
-d
-k
$i
;
echo
$j
| ../../../arti/analysis/lagocrkread | ../../../arti/analysis/analysis
-p
-v
$u
;
rm
$j
;
done
...
...
This diff is collapsed.
Click to expand it.
do_sims_redcca.sh
+
4
−
4
View file @
b2cee28f
!
#/bin/bash
#
!
/bin/bash
# Parámetros
nombre_contenedor
=
"arti-redcca"
...
...
@@ -11,7 +11,7 @@ docker build --no-cache --build-arg ARTI_BRANCH="master" -t arti:redcca.1.0 - <
docker run
-d
-it
--name
$nombre_contenedor
arti:redcca.1.0
# Crear archivos de simulación
docker
exec
--workdir
/opt/arti/sims/
$nombre_contenedor
./do_sims.sh
-w
../../lago-corsika-77402/run/
-p
$nombre_proyecto
-v
77402
-u
csar
-t
3
60
-m
0.0
-n
90
-r
1
-i
1E6
-s
bga
-b
5
docker
exec
--workdir
/opt/arti/sims/
$nombre_contenedor
./do_sims.sh
-w
../../lago-corsika-77402/run/
-p
$nombre_proyecto
-v
77402
-u
csar
-t
60
-m
0.0
-n
90
-r
1
-i
1E6
-s
bga
-b
5
# Ejecutar simulaciones
## *all
...
...
@@ -23,7 +23,7 @@ docker exec --workdir /opt/lago-corsika-77402/run/ $nombre_contenedor bash go-$n
# Análisis
## Copiar archivo para análisis
docker
cp
do_analysis_redcca.sh
$nombre_contenedor
:/opt/lago-corsika-77402/run/
$nombre_proyecto
#
docker cp do_analysis_redcca.sh $nombre_contenedor:/opt/lago-corsika-77402/run/$nombre_proyecto
## Realizar análisis
docker
exec
--workdir
/opt/lago-corsika-77402/run/
$nombre_proyecto
$nombre_contenedor
bash do_analysis_redcca.sh
#
docker exec --workdir /opt/lago-corsika-77402/run/$nombre_proyecto $nombre_contenedor bash do_analysis_redcca.sh
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