A basic install with no authentication portal
FROM registry.rigado.com/deviceops/backend-core:0.0.13
ENV MYSQL_URL=<JDBC MySQL Conneciton String>/hawkbit
ENV RABBITMQ_HOST=<Rabbit MQ Host Name>
ENV ENABLE_USER_PASS_UI_AUTH=true| job "cluster-meta" { | |
| datacenters = ["aws_us-west-2_management"] | |
| type = "batch" | |
| periodic { | |
| cron = "0/15 * * * * * *" | |
| prohibit_overlap = true | |
| } | |
| group "main" { | |
| task "script" { |
| #!/usr/bin/env bash | |
| APPSERVER_COUNT=$(aws ec2 describe-instances \ | |
| --region us-west-2 \ | |
| --filters "Name=tag:Environment,Values=production" "Name=tag:Name,Values=AppServer" "Name=instance-state-code,Values=16" \ | |
| | jq '.Reservations | length') | |
| curl -k -d $APPSERVER_COUNT -X PUT https://127.0.0.1:8500/v1/kv/prod/cluster/appserver_count |
| version: '2' | |
| services: | |
| consul: | |
| image: consul | |
| command: consul agent -server -dev -client=0.0.0.0 -ui -bootstrap -log-level warn | |
| ports: | |
| - "8400:8400" | |
| - "8500:8500" | |
| - "8600:53/udp" |
| FROM traefik:v1.4-alpine | |
| EXPOSE 8080 | |
| COPY traefik.toml /etc/traefik/traefik.toml |
| ################################################################ | |
| # Consul Catalog configuration backend | |
| ################################################################ | |
| [entryPoints] | |
| [entryPoints.http] | |
| address = ":80" | |
| # Enable web configuration backend | |
| [web] |
| { | |
| "presets": [ "es2015", "react", "stage-1" ], | |
| "env": { | |
| "test": { | |
| "plugins": [ | |
| [ "babel-plugin-webpack-alias", { "config": "./webpack.config.js" } ] | |
| ] | |
| } | |
| } | |
| } |
| import AddTodo from '../containers/AddTodo' | |
| import Footer from './Footer' | |
| import React from 'react' | |
| import VisibleTodoList from '../containers/VisibleTodoList' | |
| import config from 'config' | |
| const App = () => ( | |
| <div> | |
| <h1>{config.say}</h1> | |
| <AddTodo /> |
| const CONFIG = { | |
| say: 'I am Development', | |
| } | |
| export default CONFIG |
| const path = require('path') | |
| module.exports = { | |
| context: path.join(__dirname, 'src'), | |
| entry: './script/main.jsx', | |
| resolve: { | |
| extensions: ['', '.js', '.jsx', '.scss'], | |
| alias: { | |
| config: path.join(__dirname, 'src/config/dev.js'), | |
| }, |