forked from docker/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Imitial import of https://github.com/docker/hub2-demo
- Loading branch information
Misty Stanley-Jones
committed
Sep 29, 2016
1 parent
17f54b8
commit 4d1a622
Showing
751 changed files
with
50,237 additions
and
110 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[bumpversion] | ||
current_version = 1.1.0 | ||
commit = True | ||
tag = True | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
node_modules | ||
dist | ||
dist-app-server | ||
.tmp | ||
.sass-cache | ||
app/bower_components | ||
test/bower_components | ||
.idea | ||
.nodemon-find-ref | ||
.DS_Store | ||
|
||
\#*# | ||
.#* | ||
|
||
auto-docs | ||
|
||
netrc | ||
private-deps/* | ||
app/scripts/build | ||
restclient.rc | ||
.build | ||
.build-prod |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM bagel/universe:337f873f4f23f4b2603972229ae3519c5f61f6d7 | ||
|
||
# Source | ||
COPY ./app /opt/hub/app | ||
# Webpack | ||
COPY ./webpack.config.js /opt/hub/webpack.config.js | ||
COPY ./_webpack /opt/hub/_webpack | ||
# Make | ||
COPY ./Makefile /opt/hub/Makefile | ||
# Gulp | ||
COPY ./gulpfile.js /opt/hub/gulpfile.js | ||
COPY ./gulp-tasks /opt/hub/gulp-tasks | ||
# ESLint | ||
COPY ./.eslintrc /opt/hub/.eslintrc | ||
# Flow | ||
ENV LOGNAME bagels | ||
COPY ./flow-libs /opt/hub/flow-libs | ||
COPY .flowconfig /opt/hub/.flowconfig | ||
ENV PATH /opt/flow/:$PATH | ||
|
||
RUN DEBUG=* webpack -d | ||
RUN make server-target | ||
RUN make styles-base | ||
RUN gulp images::dev | ||
RUN make images | ||
RUN make docker-font-dev | ||
# favicon | ||
COPY ./app/favicon.ico /opt/hub/app/.build/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Only run on Linux atm | ||
wrappedNode(label: 'docker') { | ||
deleteDir() | ||
stage "checkout" | ||
checkout scm | ||
|
||
documentationChecker("docs") | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
.PHONY: dns server-prod-target server-target server-extras base base-tag prod prod-tag push-builders js-prod images images-prod | ||
|
||
# Set up make's | ||
dns: | ||
./containers/dnsmasq/configure_system_dns.sh | ||
hub-deps: | ||
git clone [email protected]:docker/docker-ux.git ./private-deps/docker-ux | ||
git clone [email protected]:docker/hub-js-sdk.git ./private-deps/hub-js-sdk | ||
# -> bootstrap-dev | ||
server-target: | ||
mkdir -p app/.build/public/styles | ||
cp -R app/img app/.build/public | ||
styles-base: | ||
cp ./private-deps/docker-ux/dist/styles/main.css ./app/.build/public/styles/main.css | ||
images: | ||
cp -R ./private-deps/docker-ux/dist/images ./app/.build/public/ | ||
docker-font-dev: | ||
cp -R ./private-deps/docker-ux/dist/fonts ./app/.build/public/ | ||
cp ./app/fonts/* ./app/.build/public/fonts/ | ||
mkdir -p app/.build/public/styles | ||
cp ./app/styles/font-awesome.min.css ./app/.build/public/styles/font-awesome.min.css | ||
|
||
# Circle make's | ||
local: | ||
docker build -f local.Dockerfile -t bagel/hub-builders-local . | ||
copy-local: | ||
docker run --name bagel-local -d bagel/hub-builders-local sleep 50s | ||
docker cp bagel-local:/opt/hub/.build-prod ./.local/ | ||
stage: | ||
docker build -f dockerfiles/Dockerfile-stage-build -t bagel/hub-builders-stage . | ||
copy-stage: | ||
docker run --name bagel-stage -d bagel/hub-builders-stage sleep 50s | ||
docker cp bagel-stage:/opt/hub/.build-prod ./.stage/ | ||
prod: | ||
docker build -f dockerfiles/Dockerfile-prod-build -t bagel/hub-builders-prod . | ||
base-prod-tag: | ||
$(shell docker tag bagel/hub-builders-prod:latest bagel/hub-builders-prod:$(shell git rev-parse --verify HEAD)) | ||
copy-prod: | ||
docker run --name bagel-prod -d bagel/hub-builders-prod sleep 50s | ||
docker cp bagel-prod:/opt/hub/.build-prod . | ||
|
||
# Dockerfile make's | ||
server-prod-target: | ||
rm -rf .build-prod | ||
mkdir -p .build-prod | ||
server-extras: | ||
cp app-server/package.json .build-prod/package.json | ||
cp app-server/favicons/favicon-dev.ico .build-prod/favicon.ico | ||
cp app-server/Dockerfile .build-prod/Dockerfile | ||
js-prod: | ||
ENV=production webpack --production --config _webpack/webpack.prod.config.js | ||
ENV=production webpack --production --config _webpack/webpack.server.config.js | ||
js-stage: | ||
ENV=staging webpack --production --config _webpack/webpack.prod.config.js | ||
ENV=staging webpack --production --config _webpack/webpack.server.config.js | ||
js-local: | ||
ENV=local webpack --production --config _webpack/webpack.prod.config.js | ||
ENV=local webpack --production --config _webpack/webpack.server.config.js | ||
images-prod: | ||
cp -R ./private-deps/docker-ux/dist/images .build-prod/public/ | ||
docker-font-prod: | ||
cp -R ./private-deps/docker-ux/dist/fonts .build-prod/public | ||
cp -R ./app/fonts/* .build-prod/public/fonts/ | ||
mkdir -p app/.build-prod/public/styles | ||
cp ./app/styles/font-awesome.min.css .build-prod/public/styles/font-awesome.min.css | ||
styles-base-prod: | ||
cp ./private-deps/docker-ux/dist/styles/main.css .build-prod/public/styles/main.css | ||
stats-dir: | ||
mkdir -p /stats/css | ||
css-stats: | ||
/opt/hub/node_modules/.bin/cssstats file /opt/hub/.build-prod/public/styles/$(shell cat /tmp/.client-js-hash) > /stats/css-stats.json | ||
|
||
# Unused make commands | ||
# Universe commands are no longer used as we now have the universe branch | ||
dev-test-jest: | ||
docker build -f dockerfiles/Dockerfile-builders-dev-jest -t bagel/hub-builders-dev-jest . | ||
prod-tag: | ||
$(shell docker tag bagel/hub-prod:latest bagel/hub-prod:$(shell git rev-parse --verify HEAD)) | ||
universe: | ||
# [ ! "${$(npm -v):0:1}" == "2" ] && echo "please \"npm install -g npm\" to get npm3'" && exit 1 | ||
rm -rf node_modules | ||
npm install --production | ||
docker build -f dockerfiles/milky-way -t bagel/milky-way . | ||
docker build -f dockerfiles/universe -t bagel/universe . | ||
push-universe: | ||
$(shell docker tag bagel/milky-way:latest bagel/milky-way:$(shell git rev-parse --verify HEAD)) | ||
$(shell docker tag bagel/universe:latest bagel/universe:$(shell git rev-parse --verify HEAD)) | ||
docker push bagel/milky-way | ||
docker push bagel/universe | ||
new-universe: | ||
sed -i '.bak' "s/universe:[a-z0-9]*$$/universe:${UNIVERSE_TAG}/" Dockerfile | ||
sed -i '.bak' "s/universe:[a-z0-9]*$$/universe:${UNIVERSE_TAG}/" local.Dockerfile | ||
sed -i '.bak' "s/universe:[a-z0-9]*$$/universe:${UNIVERSE_TAG}/" dockerfiles/* | ||
sed -i '.bak' "s/milky-way:[a-z0-9]*$$/milky-way:${UNIVERSE_TAG}/" dockerfiles/* |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Quickstart | ||
|
||
*Make sure to clone this repo into your `/Users/<username>` directory for it to run correctly* | ||
|
||
```bash | ||
make dns | ||
make hub-deps | ||
# you must log in as the 'dux' user. ask one of the frontend | ||
# team members for credentials | ||
npm login | ||
npm install | ||
docker-compose build | ||
npm run build:dev | ||
./startup-scripts/bootstrap-dev.sh | ||
docker-compose up -d | ||
``` | ||
|
||
At this point you will need `tmux` to run `boot-dev-tmux.sh`, it can | ||
be installed on OSX by `brew install tmux` | ||
|
||
```bash | ||
./startup-scripts/boot-dev-tmux.sh | ||
``` | ||
|
||
## tmux env | ||
|
||
Here are some basic commands to help you get around tmux. `C` is | ||
Control, `-` means hit both keys, everything else it a literal | ||
character you need to produce. | ||
|
||
| Command | Keys | | ||
|--------------|---------| | ||
| Next Window | C-b n | | ||
| Next Panel | C-b o | | ||
| Close Window | C-b & y | | ||
|
||
# Docs | ||
|
||
* [React](docs/concepts/React.md) | ||
* [Flux](docs/concepts/Flux.md) | ||
* [React Native](docs/concepts/React-Native.md) | ||
* [React Router](docs/concepts/React-Router.md) | ||
* [Immutability](docs/concepts/Immutability.md) |
Oops, something went wrong.