7 Commits

Author SHA1 Message Date
Chris Hoge
902d0362c7 Migrating from bower to yarn
* Works with the Docker development image
  * Requires an upgrade to Node 8
  * Using bower-away and yarn for simplicity

Change-Id: I353fb2f01f50f88707341369221d32ac9de513b1
2018-06-13 16:19:14 -07:00
Chris Hoge
18c8c1e211 Fix the apt upgrade command in the Docker file
apt update was being run without '-y', which was causing the
update to fail trying to install out of date packages. This
patch adds the `-y` and fixes the Docker build

Change-Id: I1260bb7f0dbcf95378bcda9d449293d02fa9f200
2018-04-03 14:58:39 -07:00
Megan Guiney
ac57d50f42 Make run-in-docker script use Xenial
This will allow us to run Py35 tests while testing in the container

Change-Id: Ia95262c37a9eb843b8afdedf6e9adf76a9f5641f
2018-01-04 18:54:53 -08:00
sslypushenko
b0a079fdb9 Remove IPython from RefStack container
RefStack does not depend on IPython, so it needs to be removed

Fixes: https://storyboard.openstack.org/#!/story/2001003

Change-Id: Ife91af120acaaf939344c56169b79b4e084a3aaf
2017-04-26 10:20:37 +03:00
sslypushenko
4d449b76c4 Minor fix in docker scripts
Changes in oslo broke ./run_in_docker script, to be precise, one of
subcommands 'api-db-version' unexpectedly changed output and become
too verbose. This patch fixes this issue.

Change-Id: I159585ecc5ccdb4ad22522175dac70841b4125a2
2016-11-10 16:36:57 +02:00
Vladislav Kuzmin
7b48c99fcb Add authentication through openstackid.org
In Refstack's database store only fullname, email and openid.
After sign in refstack backend create session and write it id in cookie.
When UI is opened in browser, Angular try to get info from
/v1/profile. If data about user received then user is authenticated.

Change-Id: Ib2cabc0c6b4de4b2ca1f02cc9e062a6e3550daa0
2015-07-02 16:20:55 +03:00
sslypushenko
f77d86cc68 Local Refstack in Docker
Main purpose of this path is providing a way how to easily create local env of
Refstack API with from your latest code in Docker container. I should be helpful for
testing new features and newcomers developers.

run-in-docker [OPTIONS] [COMMAND]  - run refstack container (if it is not running), upload
    latest project code into container and run Refstack API in it (default COMMAND is 'api-up').
    Just run ./drun-in-docker, wait untill it finish and then check it on https://127.0.0.1
    It is important to set env[REFSTACK_HOST] with public host for your local API.
    By default 127.0.0.1 is used,  should work fine if you access to your local Refstack
    only from your localhost. You can customize Refstack API config with editing
    docker/templates/refstack.conf.tmpl. It is a bash template.
    You can use ${SOME_ENV_VARIABLE} in it.

Available options:
  -r    Force delete '${CONTAINER}' container and run it again
  -i    Run container with isolated MySQL data.
        By default MySQL data stores in refstack_data_DATA-BASE-REVISON container
        It reuses if such container exists. If you want to drop DB data, just execute
        sudo docker rm refstack_data_DATA-BASE-REVISON
  -b    Force delete '${IMAGE}' image and built it ag
  -d    Turn on debug information
  -h    Print usage message

In-container commands:
    api-up - sync project and run Refstack API
    api-init-db - initialize Refstack database
    api-db-version - get current migration version of Refstack database
    api-sync - sync project files in contaner with project on host
    activate - activate python virtual env
    mysql - open mysql console

Requirements:
Docker 1.6 (How to update on Ubuntu http://www.ubuntuupdates.org/ppa/docker)

Change-Id: I26422aecaf68af6c340ebcc2a8a36d2a4907d84c
2015-06-15 22:56:24 +03:00