Giter Club home page Giter Club logo

edjanger's People

Contributors

pamtrak06 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jcnoir mahermeg17

edjanger's Issues

Add ssh capabilities to template

From @pamtrak06 on November 11, 2016 8:27

Create edockertemplate ssh="username=[user];password=[pwd];host=[server name or ip];path=[path where to push]" : allow to push current configuration

Copied from original issue: pamtrak06/edocker#12

replace all bc commands by bash parenthesis capabilities

Example:
script _common.sh, function dockerbasiccontainer()

idx=$(echo "$(docker ps -a --filter="name=${container_name}[0-9]+" | wc -l)" | bc)
replace by
idx=$(($(docker ps -a --filter="name=${container_name}
[0-9]+"|wc -l)-1))

edjangerports --exposed does not work correctly

--- List all mapped ports on runnning containers...
Id:2629b5e45e58 Image:pamtrak06/ubuntu14.04-apache2-python Name:ubuntu14.04-apache2-python_14
Id:761e095e6429 Image:pamtrak06/ubuntu14.04-apache2-python Name:ubuntu14.04-apache2-python_13
Id:33f1835bfbb8 Image:pamtrak06/ubuntu14.04-apache2-python Name:ubuntu14.04-apache2-python_12
Id:d5ca30947b44 Image:pamtrak06/ubuntu14.04-apache2-python Name:ubuntu14.04-apache2-python_11
Id:6ef798c62060 Image:pamtrak06/ubuntu14.04-apache2-python Name:ubuntu14.04-apache2-python_10
Id:af4b709d67e3 Image:pamtrak06/ubuntu14.04-apache2-python Name:ubuntu14.04-apache2-python_3
Id:21da1f7508de Image:pamtrak06/ubuntu14.04-apache2-python Name:ubuntu14.04-apache2-python_1

Alias for compose

From @pamtrak06 on November 12, 2016 10:11

Make compose command line available with edocker commands when docker-compose.yaml is present

Copied from original issue: pamtrak06/edocker#13

Run compose commands

From @pamtrak06 on November 11, 2016 8:3

edockercompose command="stop; build; up"

edockercompose properties=true command="stop; rm; build; up" print-only
=> use edocker.properties commands
#compose_up_options="-p production"
#compose_build_options="-p production"
#compose_rm_options="-p production"
#compose_stop_options="-p production"

Copied from original issue: pamtrak06/edocker#10

_common.sh better management of unsetOptionsParameters

unset variables valid only if script is running in a subprocess (executed with bash)

function unsetOptionsParameters()
{

TODO do it with readSpecifications and readDocumentation

unset -v help
unset -v scriptname
unset -v confirm
unset -v confirmquestion
unset -v commandline
unset -v commandcomment
unset -v commandoptions
unset -v noneedsofproperties
unset -v all
unset -v force
unset -v index
}

bug: trusting_swartz: numeric argument required

Red Hat Enterprise Linux Server release 7.3 (Maipo)
edjangerstart
/opt/edjanger/scripts/_common.sh: line 242: return: trusting_swartz: numeric argument required
Start container: reflex-app_255......
Error response from daemon: No such container: reflex-app_255

Templating : check configuration

From @pamtrak06 on November 11, 2016 7:58

Check configuration consistency betweeen templates, properties and edocker.properties

  • check if one edocker.properties present for one edocker.template
  • check if there is no template variables remaining in edocker.properties
  • check for one configuration properties if edocker.properties are correctly updated

Copied from original issue: pamtrak06/edocker#8

better management of container_name

when a container name with a shorter root name exist, it could be a problem to identify correct container with longer name :

  • container_name=web
  • container_name=web_app

Add docker-machine capabilities

From @pamtrak06 on November 12, 2016 10:17

Identify attached node
Add parameters of docker-machine n'ose attached ans run it
Evaluate disk size for specified node

Copied from original issue: pamtrak06/edocker#17

add message when edjanger is not correctly installed

$ edjangerruni
/opt/edjanger/scripts/runi.sh: line 45: {edjangerpath}/_common.sh: No such file or directory
/opt/edjanger/scripts/runi.sh: line 47: read_app_properties: command not found
Image name must be filled, configure variable image_name in edjanger.

replace by

$ edjangerruni
Bad edjanger configuration, please run ./edjangerinstall.sh --alias from edjanger path

Template command did not replace multiple options on rhel7 (envsubst version ?)

OS: rhel 7.1
for mac osx it's ok
edjangertemplate properties=configuration

edjanger.template
#exposed_ports:exposed port
exposed_ports="${app_exposed_ports}"
#shared_volumes:shared volumes
shared_volumes="${app_shared_volumes}"

configuration.properties
#exposed_ports:exposed port
export app_exposed_ports="-p 8787:8080 -p78999:443"
#shared_volumes:shared volumes
export app_shared_volumes="-v $PWD/volumes/data:/data -v $PWD/volumes/test:/test"

edjanger.properties
#exposed_ports:exposed port
exposed_ports="" => ERROR no one !!
#shared_volumes:shared volumes
shared_volumes="-v $PWD/volumes/data:/data" => ERROR one only !!

Commands git available

From @pamtrak06 on November 11, 2016 8:0

Propose git command with arguments

edockergit "status" : git status
edockergit "pull origin master" : git pull origin master
...

Copied from original issue: pamtrak06/edocker#9

Generate edocker.properties template high configuration

From @pamtrak06 on November 8, 2016 23:15

  1. Create edocker.properties model :
    ex. node/edocker.properties.model

    -p {NODE_PORT}:80
    -v {NODE_SHARED_VOLUME}:/opt/app
    ...
    2.Script to replace variables in model files
    deploy.sh
    #bin/bash
    config=$1
    for prop in $(find $1 -name edocker.properties.model); do
    envsubst < "$config" > "${prop%.model}"
    done

3.One configuration file by environment (user, qualification, production, ...)
> deploy.sh docker_gbosc.properties
NODE_PORT=32768
NODE_SHARED_VOLUME=$PWD/volumes/app
> deploy.sh docker_integration.properties
NODE_PORT=32767
NODE_SHARED_VOLUME=$PWD/volumes/app
> deploy.sh docker_production.properties
NODE_PORT=80
NODE_SHARED_VOLUME=$PWD/volumes/app

  1. Update docker-compose.yaml
    Creation of an yaml configuration file for docker-compose
    edockercompose => build docker-compose.yaml
    Put blocks in container runtime order (mongo database, node, nginx...)

  2. Run
    docker-compose stop
    docker-compose build
    docker-compose up

Copied from original issue: pamtrak06/edocker#3

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.