This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
socket.on('k8sDestroyPod', function(data) { | |
k8.ns.po.delete(data.name, (err) => { | |
if(err) { | |
err; | |
} | |
}); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDom from 'react-dom'; | |
import {Entity} from 'aframe-react'; | |
import io from 'socket.io-client'; | |
const socket = io('http://localhost:9003'); | |
class ClusterInfo extends React.Component { | |
constructor(props) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Entity} from 'aframe-react'; | |
import React from 'react'; | |
export default props => ( | |
<Entity id="controller-ent"> | |
<Entity static-body={{shape: 'sphere', sphereRadius: '0.02'}} | |
vive-controls={{hand: 'right'}} | |
vive-cursor | |
className="controllers" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
componentDidMount() { | |
// Fun hack to make physics and grab register newly added objects | |
[].slice.call(document.querySelectorAll('.controllers')).forEach((el) => el.removeAttribute('sphere-collider')); | |
[].slice.call(document.querySelectorAll('.controllers')).forEach((el) => el.setAttribute('sphere-collider', 'objects: .pod;')); | |
// [].slice.call(document.querySelectorAll('.controllers')).forEach((el) => el.components['sphere-collider'].update); | |
// Enable physics on the appended object | |
ReactDom.findDOMNode(this.refs.pod).setAttribute('dynamic-body', ''); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From https://tickets.opscode.com/browse/CHEF-4029 | |
lb['api_fqdn'] = "chef.example.com" | |
nginx['enable_non_ssl'] = true | |
nginx['non_ssl_port'] = 4000 | |
nginx['ssl_port'] = 443 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:6.9.5 | |
RUN mkdir -p /code | |
WORKDIR /code | |
ADD . /code | |
RUN npm install | |
CMD [ "npm", "run", "start" ] | |
EXPOSE 3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -l | |
set -e | |
echo "BUILDING APP" | |
npm run build | |
node prodServer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:6.9.5-alpine | |
RUN mkdir -p /code | |
WORKDIR /code | |
ADD . /code | |
RUN npm set progress=false && \ | |
npm install -s --no-progress && \ | |
npm run build && \ | |
npm prune --production | |
CMD [ "npm", "start" ] | |
EXPOSE 3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:6.9.5 | |
RUN mkdir -p /code | |
WORKDIR /code | |
ADD . /code | |
RUN npm install -g -s --no-progress yarn && \ | |
yarn && \ | |
yarn run build && \ | |
yarn run prune && \ | |
yarn cache clean | |
CMD [ "npm", "start" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:6.9.5-alpine | |
RUN mkdir -p /code | |
WORKDIR /code | |
ADD . /code | |
RUN npm install -g -s --no-progress yarn && \ | |
yarn && \ | |
yarn run build && \ | |
yarn run prune && \ | |
yarn cache clean | |
CMD [ "yarn", "start" ] |