Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eclipse-che-sidecar-s3fs
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
Administrator
eclipse-che-sidecar-s3fs
Commits
f51970b1
Commit
f51970b1
authored
4 years ago
by
Administrator
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit
parent
eb168030
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#396
failed with stage
in 1 second
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+12
-0
12 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+52
-0
52 additions, 0 deletions
Dockerfile
build_image.sh
+10
-0
10 additions, 0 deletions
build_image.sh
entrypoint.sh
+13
-0
13 additions, 0 deletions
entrypoint.sh
with
87 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
12
−
0
View file @
f51970b1
build-image
:
stage
:
build
before_script
:
-
docker info
-
docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
script
:
-
./build_image.sh
tags
:
-
shell
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
52
−
0
View file @
f51970b1
# Adapted from https://github.com/efrecon/docker-s3fs-client/blob/master/Dockerfile
# pinning to current version
FROM
alpine:3.13.2
AS
build
ARG
S3FS_VERSION=v1.89
RUN
apk
--no-cache
add
\
ca-certificates
\
build-base
\
git
\
alpine-sdk
\
libcurl
\
automake
\
autoconf
\
libxml2-dev
\
libressl-dev
\
fuse-dev
\
curl-dev
&&
\
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
&&
\
cd
s3fs-fuse
&&
\
git checkout tags/
${
S3FS_VERSION
}
&&
\
./autogen.sh
&&
\
./configure
--prefix
=
/usr
&&
\
make
-j
&&
\
make
install
FROM
alpine
COPY
--from=build /usr/bin/s3fs /usr/bin/s3fs
RUN
mkdir
-p
/projects
&&
\
apk
--no-cache
add
\
ca-certificates
\
fuse
\
libxml2
\
libcurl
\
libgcc
\
libstdc++
\
tini
&&
\
s3fs
--version
WORKDIR
/projects
COPY
*.sh /usr/local/bin/
# The default is to perform all system-level mounting as part of the entrypoint
# to then have a command that will keep listing the files under the main share.
# Listing the files will keep the share active and avoid that the remote server
# closes the connection.
ENTRYPOINT
[ "tini", "-g", "--", "entrypoint.sh" ]
CMD
[ "empty.sh" ]
This diff is collapsed.
Click to expand it.
build_image.sh
0 → 100644
+
10
−
0
View file @
f51970b1
#!/usr/bin/env bash
set
-ex
IMAGE_NAME
=
"
$CI_REGISTRY_IMAGE
"
:
"
$CI_COMMIT_BRANCH
"
docker build
-t
${
IMAGE_NAME
}
-f
Dockerfile
.
docker push
${
IMAGE_NAME
}
exit
0
This diff is collapsed.
Click to expand it.
entrypoint.sh
0 → 100644
+
13
−
0
View file @
f51970b1
#!/bin/sh
# Create user directories
mkdir
/s3root
s3fs maap-
$MAAP_ENVIRONMENT
-workspace
:/ /s3root
-o
use_cache
=
/tmp
-o
imdsv1only
-o
iam_role
=
auto
mkdir
-p
/s3root/
$CHE_WORKSPACE_NAMESPACE
mkdir
-p
/s3root/shared/
$CHE_WORKSPACE_NAMESPACE
umount /s3root
rm
-rf
/s3root
s3fs maap-
$MAAP_ENVIRONMENT
-workspace
:/
$CHE_WORKSPACE_NAMESPACE
/my-private-bucket
-o
use_cache
=
/tmp
-o
imdsv1only
-o
iam_role
=
auto
s3fs maap-
$MAAP_ENVIRONMENT
-workspace
:/shared /shared-buckets
-o
ro
-o
use_cache
=
/tmp
-o
imdsv1only
-o
iam_role
=
auto
s3fs maap-
$MAAP_ENVIRONMENT
-workspace
:/shared/
$CHE_WORKSPACE_NAMESPACE
/my-public-bucket
-o
use_cache
=
/tmp
-o
imdsv1only
-o
iam_role
=
auto
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