Sign inSign up

chathuru/ubuntu-s3fs

By chathuru

•Updated over 4 years ago

Image
0

265

chathuru/ubuntu-s3fs repository overview

⁠Ubuntu 20.04 with s3fs

This docker image is a Ubuntu 20.04 installed s3fs

⁠How to use s3fs

echo ACCESS_KEY:SECRET_ACCESS_KEY > PATH_TO_FILE

chmod 600 ~/.passwd-s3fs

s3fs bucket-name /path/to/mountpoint -o passwd_file=/path/passwd-s3fs

⁠Dockerfile

FROM ubuntu:20.04

RUN \
  apt update && \
  DEBIAN_FRONTEND=noninteractive apt-get install -y automake curl build-essential libcurl4-openssl-dev libssl-dev libfuse-dev libtool libxml2-dev mime-support tar pkg-config git awscli python3 python3-pip s3fs vim nano && \
  rm -rf /var/lib/apt/lists/*

Running docker image need --privileged mode. docker run --privileged

⁠K8s deployment yaml

Run this docker image on K8s

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: ubuntu
  name: ubuntu
  namespace: asanka-dev
spec:
  replicas: 2
  selector:
    matchLabels:
      app: ubuntu
  template:
    metadata:
      labels:
        app: ubuntu
    spec:
      containers:
      - image: chathuru/ubuntu-s3fs
        name: ubuntu
        command: ['sleep', 'infinity']
        securityContext:
          privileged: true

Tag summary

Content type

Image

Digest

Size

245.7 MB

Last updated

over 4 years ago

docker pull chathuru/ubuntu-s3fs