This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
FROM debian:stable-slim | |
RUN apt-get update && \ | |
apt-get install -y ca-certificates curl && \ | |
rm -rf /var/lib/apt/lists/* | |
ENV SAML2AWS_VERSION=2.16.0 | |
ENV SAML2AWS_DOWNLOAD_URL=https://github.com/Versent/saml2aws/releases/download/v${SAML2AWS_VERSION}/saml2aws_${SAML2AWS_VERSION}_linux_amd64.tar.gz | |
RUN curl -L "$SAML2AWS_DOWNLOAD_URL" -o saml2aws.tar.gz && \ |
const util = require('util'); | |
const puppeteer = require('puppeteer'); | |
const axe = require('axe-core'); | |
const urls = [ | |
'https://engineering.cerner.com/terra-ui/#/home/terra-ui/index', | |
'https://engineering.cerner.com/terra-ui/#/getting-started/terra-ui/what-is-terra', | |
]; | |
const results = []; |
// src/OktaAuthComponent.js | |
import React, { Component } from 'react'; | |
import { Redirect } from 'react-router-dom'; | |
import { withAuth } from '@okta/okta-react'; | |
export const OktaAuthComponent = withAuth(class Auth extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { authenticated: null }; | |
this.checkAuthentication = this.checkAuthentication.bind(this); | |
this.checkAuthentication(); |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
See this issue.
Docker best practise to Control and configure Docker with systemd.
Create daemon.json
file in /etc/docker
:
{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
import axios from "axios"; | |
const singleton = Symbol(); | |
const singletonEnforcer = Symbol(); | |
function readCookie(name) { | |
const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); | |
return (match ? decodeURIComponent(match[3]) : null); | |
} |
# For example, run "npm install" | |
docker run -v "$PWD":/usr/src/app -w /usr/src/app node:4 npm install | |
# This command creates a container (downloading one first if you don't have it locally), runs the command in a current directory and quits the container | |
# Great Success! |
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |