Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Theia stack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esa-common
che7
stacks
Theia stack
Commits
fa7a3b42
Commit
fa7a3b42
authored
3 years ago
by
edupin
Browse files
Options
Downloads
Patches
Plain Diff
correct maap-s3.py and fix Gdal version
parent
bc4adbd2
No related branches found
No related tags found
No related merge requests found
Pipeline
#1114
failed with stages
in 9 minutes and 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
buildEclipseStack.sh
+1
-1
1 addition, 1 deletion
buildEclipseStack.sh
maap-s3.py
+20
-2
20 additions, 2 deletions
maap-s3.py
with
21 additions
and
3 deletions
buildEclipseStack.sh
+
1
−
1
View file @
fa7a3b42
#zip -r Project_template.zip Project_template
#zip -r Project_template.zip Project_template
export
VERSION
=
0.
4
export
VERSION
=
0.
5
docker build
-t
kosted/bmap-stack:
$VERSION
.
docker build
-t
kosted/bmap-stack:
$VERSION
.
docker run
--rm
kosted/bmap-stack:
$VERSION
pip freeze
docker run
--rm
kosted/bmap-stack:
$VERSION
pip freeze
docker push kosted/bmap-stack:
$VERSION
docker push kosted/bmap-stack:
$VERSION
...
...
This diff is collapsed.
Click to expand it.
maap-s3.py
+
20
−
2
View file @
fa7a3b42
...
@@ -34,6 +34,7 @@ def display_help():
...
@@ -34,6 +34,7 @@ def display_help():
print
(
'
delete path/in/S3/file.tiff Delete an existing data on S3
'
)
print
(
'
delete path/in/S3/file.tiff Delete an existing data on S3
'
)
print
(
'
refresh Refresh credentials and password
'
)
print
(
'
refresh Refresh credentials and password
'
)
print
(
'
token email password Return a bearer token
'
)
print
(
'
token email password Return a bearer token
'
)
print
(
'
login email password Login the user
'
)
print
(
'
resume Resume last interrupted multipart upload
'
)
print
(
'
resume Resume last interrupted multipart upload
'
)
sys
.
exit
(
2
)
sys
.
exit
(
2
)
...
@@ -78,6 +79,17 @@ def refresh():
...
@@ -78,6 +79,17 @@ def refresh():
generate_token
(
email
,
password
)
generate_token
(
email
,
password
)
###################################
# Login using email dans password #
###################################
def
login
(
email
,
password
):
if
email
and
password
:
print
(
"
[INFO] Get an existing or fresh token
"
)
#Function to generate a new token
generate_token
(
email
,
password
)
else
:
print
(
"
[ERROR] Please check your email or password
"
)
###########################
###########################
# Generate token and save #
# Generate token and save #
###########################
###########################
...
@@ -524,7 +536,13 @@ try:
...
@@ -524,7 +536,13 @@ try:
if
len
(
argv
)
!=
3
:
if
len
(
argv
)
!=
3
:
display_help
()
display_help
()
else
:
else
:
get_token
(
argv
[
1
],
argv
[
2
])
get_token
(
argv
[
1
],
argv
[
2
])
elif
argv
[
0
]
==
'
login
'
:
# Delete a data
if
len
(
argv
)
!=
3
:
display_help
()
else
:
login
(
argv
[
1
],
argv
[
2
])
elif
argv
[
0
]
==
'
download
'
:
elif
argv
[
0
]
==
'
download
'
:
# Download a data
# Download a data
if
len
(
argv
)
!=
3
:
if
len
(
argv
)
!=
3
:
...
@@ -550,4 +568,4 @@ except getopt.GetoptError:
...
@@ -550,4 +568,4 @@ except getopt.GetoptError:
print
(
'
The wrong option is provided. Please run -h
'
)
print
(
'
The wrong option is provided. Please run -h
'
)
# Terminate the script
# Terminate the script
sys
.
exit
(
2
)
sys
.
exit
(
2
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
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