Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1019 Bytes

readme.md

File metadata and controls

53 lines (35 loc) · 1019 Bytes

OCI API Server on Docker

Introduction

Docker image to run API server to interact with OCI.

For the OCI API Server functions see the server documentation

Installation

Docker 1.9 or above is required

    git clone https://github.com/snafuz/oci-api-server.git
    ./container/build.sh

Usage

Setup OCI

Prepare the configuration file:

$ cp data/template_config.json data/config.json

Edit config.json according to your environment

Setup Terraform

Put you terraform file(s) in ./data

NOTE: don't use config.json to setup terraform path if you're using Docker

Run API Server

To run the server as daemon

    ./container/run-server.sh ./data
    #API Server running on http://localhost:5000/
    

To stop the server

    ./container/stop-server.sh
    

To run the server in interactive mode

    ./container/run-server-interactive.sh ./data
    #API Server running on http://localhost:5000/