Git Product home page Git Product logo

spaceport's Introduction

spaceport's People

Contributors

acrobat avatar bakie avatar dbeerten avatar dependabot[bot] avatar devolicious avatar numkil avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spaceport's Issues

SSL changes required

Post HTTPS on/off in environment variable for apache container.
On "spaceport start" check that certificates are found, if not ask the path, and copy certificates to dinghy.

Add restart flag when starting container

Add the restart flag unless-stopped when starting a container.
The restart unless-stopped flag will always restart your container if your Docker daemon was stopped or restarted. Unless if you stopped your container manually

Rework spaceport to use docker commands

Rework spaceport so we use the docker subcommands like container, image etc.

Example: we use docker ps while the proper way is docker container ls. docker run will be docker container run ...

Change logic of elasticsearch in the init command

expand the logic and first ask if we need elasticsearch? + maybe we can make it flexable that if we only support 1 version it does not ask which version but if we add more to the supported list that it will ask.

Try different nfsmount options to speedup nfs

Sometimes when changing a file, the file itself is not "found" possibly due to slow sync.

So we need to try different options to speedup nfs. The actimeo=1 should always be set as this speeds up the sync drastically.

Other options we should check:

More info on the options: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html/deployment_guide/s1-nfs-client-config-options

Check if nfs path overlap before adding it

During the spaceport start command we add the project root dir to /etc/exports but we should first check if the path we want to add does not overlap with the paths already setup. Example

/home/project/project-x and /home/project/project-x/vendor/custom/shared-lib/

Issue with the apache container name

The name of the apache container needs to be the same as the ssl cert name. For instance: if you do a git clone of a project and name it myProject and the ssl cert is for projectx.myurl.com then the dinghy will not provide the site via ssl because the names do not match.

Add ssl check in status command

If the command is run in a project directory, check if there are certificates in place, if not give a warning that the site will only work with http

Add extra information in output when running spaceport start

If everything went ok, show the full urls instead of only the domains. Also give an indication that the site will be available on https or not.

Old output:

 [OK] Docker is up and running.

      Website ==> test.dev.kunstmaan.be

      Maildev ==> localhost:1080

Better output:

 [OK] Docker is up and running.

      Website ==> https://test.dev.kunstmaan.be and http://test.dev.kunstmaan.be

      Maildev ==> http://localhost:1080


 [OK] Docker is up and running.

      Website ==> http://test.dev.kunstmaan.be

      Maildev ==> http://localhost:1080

Add watchtower container

https://github.com/containrrr/watchtower

With watchtower you can update the running version of your containerized app simply by pushing a new image to the Docker Hub or your own image registry. Watchtower will pull down your new image, gracefully shut down your existing container and restart it with the same options that were used when it was deployed initially.

Check if apache is running

Give an error when apache is running when you run "spaceport start". If it is on, hint the command to stop the webserver, and stop the startup process.

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.