Skip to content
This repository was archived by the owner on Jan 1, 2021. It is now read-only.
This repository was archived by the owner on Jan 1, 2021. It is now read-only.

persistent samba shares #474

Open
Open

Description

@so0k

I'm trying to setup a development environment based on docker for our developers. Currently most of them are using windows.

I hope to use boot2docker with a persistent folder within the vm, I've created following script to achieve this.

Developers just have to install boot2docker and use the gist by running this command to get started:
curl https://gist.githubusercontent.com/so0k/d4f5e485a81ca5768643/raw -o setup.sh \
&& chmod +x setup.sh

followed by

.\setup.sh

are there any comments/concerns or advise to do this in a better way? I do not want to use a custom boot2docker.iso with VBox guest additions to ensure it's easy to keep upgrading in the future.

Activity

  1. so0k commented on Aug 8, 2014

    @so0k
    Author

    For windows, the below gist will mount G drive to the samba share, I imagine using robocopy mirroring to keep a local source code directory synchronized, could be added to task runners such as grunt

    https://gist.github.com/so0k/708eeaf5a9382db842eb

    EDIT: I've replaced this with a powershell build script that not only synchronizes but also uses SSH to rebuild the containers

  2. SvenDowideit commented on Aug 8, 2014

    @SvenDowideit
    Contributor

    nice. This is a very good approach. in 1.3.0, I'll be working on adding more automation for sharing - see boot2docker/boot2docker-cli#202 -

    You're right though, I'll have to look at bringing what you've done into the boot2docker-cli too :)

  3. so0k commented on Aug 8, 2014

    @so0k
    Author

    One concern I've seen raised by others is the maximum image size for the boot2docker-vm. as suggested, additional vhd's or modified vbox config file might get around that.

  4. SvenDowideit commented on Aug 11, 2014

    @SvenDowideit
    Contributor

    the disk size can be set from both the commandline when you're init-ing, and from the config file - will that help?

  5. so0k commented on Aug 22, 2014

    @so0k
    Author

    Thank you for that, for now I'm not running into space issues.

    I realized that my scripts should use the /opt/ directory - I will update them at some point.

    For now, I've added a powershell script that uses robocopy to sync with the samba share, then uses
    Posh-SSH to stop/remove/rebuild/start all containers.

    the script is here, but it depends on other scripts within the project directory (also publicly shared on github)

  6. added
    question
    on Jun 12, 2018
  7. igorgatis commented on Jul 9, 2018

    @igorgatis

    As of 2018, what's the proper way of sharing docker volumes using samba in boot2docker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions