Giter Club home page Giter Club logo

dropbox's Introduction

Overview

Docker-based ftp dropbox.

Image Size  Image Layers  Docker Registry  Circle CI

Source: [https://github.com/jumanjihouse/dropbox] (https://github.com/jumanjihouse/dropbox)

Docker Hub: [https://registry.hub.docker.com/u/jumanjiman/dropbox/] (https://registry.hub.docker.com/u/jumanjiman/dropbox/)

Docker tags:

  • optimistic: latest
  • pessimistic: ${vsftpd_version}-${build_date}-git-${hash}

User experience

The "ls" command is intentionally disabled and returns this error:

ls: 550 Permission denied.

To upload a file successfully, please do the following:

ftp> cd uploads
ftp> put [filename]

Admin

Start the container and put uploaded files into /tmp:

docker pull jumanjiman/dropbox:latest
docker run -d -p 21:21 -v /tmp:/var/ftp/pub/uploads --name dropbox jumanjiman/dropbox

Alternatively, create /etc/systemd/system/dropbox.service with:

[Unit]
Description=Dropbox
After=docker.service
Require=docker.service

[Service]
ExecStartPre=/usr/sbin/modprobe nf_conntrack_ftp
ExecStartPre=/usr/sbin/modprobe nf_nat_ftp
ExecStart=/bin/bash -c '/usr/bin/docker start dropbox || /usr/bin/docker run -d --name dropbox -v /tmp:/var/ftp/pub/uploads -p 21:21 jumanjiman/dropbox'
ExecStop=/usr/bin/docker stop dropbox
RestartSec=5s
Restart=always

[Install]
WantedBy=multi-user.target

Then run:

systemctl start dropbox.service
systemctl enable dropbox.service

Test harness

jumanjiman/dropbox
  should use correct docker API version
  image should be available
  image properties
    should expose ftp port and only ftp port
    should have volume /var/ftp/pub/uploads

users with interactive shells
  should only include "root"

container
  should be available
  should accept anonymous login
  should deny directory listing
  should upload a file in binary mode
  upload should be readable by testuser
  should allow anonymous to mkdir

contributor friction
  there should not be any

dropbox's People

Contributors

jumanjiman avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.