mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 06:00:06 +02:00
build: update versions
This commit is contained in:
parent
ff23179bfd
commit
71ff59cb55
88
docker/api/bootstrap-data.js
vendored
88
docker/api/bootstrap-data.js
vendored
@ -63,56 +63,68 @@ const bootstrap = function ({ docker, rethink }) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
data.createDatacenter({ region, name: region }, (err, datacenter) => {
|
data.getDatacenters((err, datacenters) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Triton.createClient(
|
if (datacenters && datacenters.length) {
|
||||||
{
|
process.exit(0);
|
||||||
profile: settings.triton
|
return;
|
||||||
},
|
}
|
||||||
(err, { cloudapi }) => {
|
|
||||||
if (err) {
|
|
||||||
console.error(err);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
cloudapi.getAccount((err, { firstName, lastName, email, login }) => {
|
data.createDatacenter({ region, name: region }, (err, datacenter) => {
|
||||||
|
if (err) {
|
||||||
|
console.error(err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Triton.createClient(
|
||||||
|
{
|
||||||
|
profile: settings.triton
|
||||||
|
},
|
||||||
|
(err, { cloudapi }) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
data.createUser(
|
cloudapi.getAccount((err, { firstName, lastName, email, login }) => {
|
||||||
{ firstName, lastName, email, login },
|
if (err) {
|
||||||
(err, user) => {
|
console.error(err);
|
||||||
if (err) {
|
return;
|
||||||
console.error(err);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
data.createPortal(
|
|
||||||
{
|
|
||||||
user,
|
|
||||||
datacenter
|
|
||||||
},
|
|
||||||
(err, portal) => {
|
|
||||||
if (err) {
|
|
||||||
console.error(err);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log('data bootstrapped');
|
|
||||||
process.exit(0);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
);
|
|
||||||
});
|
data.createUser(
|
||||||
}
|
{ firstName, lastName, email, login },
|
||||||
);
|
(err, user) => {
|
||||||
|
if (err) {
|
||||||
|
console.error(err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
data.createPortal(
|
||||||
|
{
|
||||||
|
user,
|
||||||
|
datacenter
|
||||||
|
},
|
||||||
|
(err, portal) => {
|
||||||
|
if (err) {
|
||||||
|
console.error(err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('data bootstrapped');
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"joi": "^10.6.0",
|
"joi": "^10.6.0",
|
||||||
"joyent-cp-gql-schema": "^1.7.0",
|
"joyent-cp-gql-schema": "^1.7.0",
|
||||||
"piloted": "^3.1.1",
|
"piloted": "^3.1.1",
|
||||||
"portal-api": "^1.7.0",
|
"portal-api": "^1.8.2",
|
||||||
"toppsy": "^1.1.0",
|
"toppsy": "^1.1.0",
|
||||||
"triton": "^5.2.0"
|
"triton": "^5.2.0"
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM quay.io/yldio/docker-compose-api
|
FROM ramitos/docker-compose-api:1.0.0
|
||||||
|
|
||||||
RUN apk add --update bash
|
RUN apk add --update bash
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "docker-compose-client",
|
"name": "docker-compose-client",
|
||||||
"version": "1.0.9",
|
"version": "1.1.0",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"repository": "github:yldio/joyent-portal",
|
"repository": "github:yldio/joyent-portal",
|
||||||
"main": "lib",
|
"main": "lib",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "portal-api",
|
"name": "portal-api",
|
||||||
"version": "1.8.0",
|
"version": "1.8.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -34,7 +34,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"boom": "^5.2.0",
|
"boom": "^5.2.0",
|
||||||
"cidr-matcher": "^1.0.5",
|
"cidr-matcher": "^1.0.5",
|
||||||
"docker-compose-client": "^1.0.9",
|
"docker-compose-client": "^1.1.0",
|
||||||
"dockerode": "^2.5.0",
|
"dockerode": "^2.5.0",
|
||||||
"force-array": "^3.1.0",
|
"force-array": "^3.1.0",
|
||||||
"graphi": "^3.0.0",
|
"graphi": "^3.0.0",
|
||||||
|
@ -63,7 +63,7 @@ rethinkdb:
|
|||||||
# FRONTEND
|
# FRONTEND
|
||||||
#############################################################################
|
#############################################################################
|
||||||
frontend:
|
frontend:
|
||||||
image: joyent/copilot-frontend:1.0.0
|
image: joyent/copilot-frontend:1.3.4
|
||||||
mem_limit: 512m
|
mem_limit: 512m
|
||||||
labels:
|
labels:
|
||||||
- triton.cns.services=copilot
|
- triton.cns.services=copilot
|
||||||
@ -81,7 +81,7 @@ frontend:
|
|||||||
# BACKEND
|
# BACKEND
|
||||||
#############################################################################
|
#############################################################################
|
||||||
api:
|
api:
|
||||||
image: joyent/copilot-api:1.1.0
|
image: joyent/copilot-api:1.8.2
|
||||||
mem_limit: 1g
|
mem_limit: 1g
|
||||||
expose:
|
expose:
|
||||||
- 3000
|
- 3000
|
||||||
@ -94,7 +94,7 @@ api:
|
|||||||
# Docker-compose wrapper
|
# Docker-compose wrapper
|
||||||
# Create _env file from running ./setup.sh
|
# Create _env file from running ./setup.sh
|
||||||
compose-api:
|
compose-api:
|
||||||
image: joyent/copilot-compose:1.0.0
|
image: joyent/copilot-compose:1.1.0
|
||||||
expose:
|
expose:
|
||||||
- 4242
|
- 4242
|
||||||
env_file:
|
env_file:
|
||||||
|
Loading…
Reference in New Issue
Block a user