Skip to content

Instantly share code, notes, and snippets.

View LaurentGoderre's full-sized avatar

Laurent Goderre LaurentGoderre

View GitHub Profile
@LaurentGoderre
LaurentGoderre / wet-nextsteps.md
Last active August 29, 2015 14:06
Web Experience Toolkit - Next Steps

Web Experience Toolkit - Next Steps

New Plugin Structure

Background

Currently in WET, there is a lot of duplication of code, particularly around plugin initialization and lifetime. Additionally, plugins are sealed in an anonymous scope to prevent conflicts but this approach makes it very difficult for implementers to override or customize plugins. To solve this problem, plugins need to switch to a more open architecture and duplicated code need to be regrouped and shared among plugins. This new structure also need a full unit test suite (see the Unit Testing section for more details). To acheive this goal, several options are available: Prototypal Inheritance (Native), Base2 Library, ES6 Classes w/ Google Traceur

Options

export WET_VERSION=$1
mkdir $WET_VERSION && cd $WET_VERSION
mkdir wet-boew && curl -L https://github.com/wet-boew/wet-boew-cdn/archive/$WET_VERSION.tar.gz | tar -zx --strip-components 1 --directory=wet-boew
mkdir GCWeb && curl -L https://github.com/wet-boew/themes-cdn/archive/$WET_VERSION-gcweb.tar.gz | tar -zx --strip-components 1 --directory=GCWeb
mkdir theme-base && curl -L https://github.com/wet-boew/themes-cdn/archive/$WET_VERSION-theme-base.tar.gz | tar -zx --strip-components 1 --directory=theme-base
mkdir theme-gc-intranet && curl -L https://github.com/wet-boew/themes-cdn/archive/$WET_VERSION-theme-gc-intranet.tar.gz | tar -zx --strip-components 1 --directory=theme-gc-intranet
mkdir theme-gcwu-fegc && curl -L https://github.com/wet-boew/themes-cdn/archive/$WET_VERSION-theme-gcwu-fegc.tar.gz | tar -zx --strip-components 1 --directory=theme-gcwu-fegc
mkdir theme-ogpl && curl -L https://github.com/wet-boew/themes-cdn/archive/$WET_VERSION-theme-ogpl.tar.gz | tar -zx --strip-components 1 --directory=theme-o
diff --git a/0.10/Dockerfile b/0.10/Dockerfile
index ff9b001..ac3f6f3 100644
--- a/0.10/Dockerfile
+++ b/0.10/Dockerfile
@@ -15,6 +15,7 @@ RUN set -ex \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
done
+ENV NPM_CONFIG_LOGLEVEL info
ENV NODE_VERSION 0.10.44
sudo -E curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
export http_proxy=[PROXY]
export https_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
git clone https://github.com/LaurentGoderre/docker-demo.git
docker run hello-world
@LaurentGoderre
LaurentGoderre / Temp
Last active January 24, 2017 16:04
Lightbox Patch
Test
diff --git a/71-607-x2017001-eng.htm b/71-607-x2017001-eng.htm
index e7fbe82..6f9799a 100644
--- a/71-607-x2017001-eng.htm
+++ b/71-607-x2017001-eng.htm
@@ -33,7 +33,7 @@
<!--#include virtual="/wet-boew4b/ssi/css.htm"-->
@LaurentGoderre
LaurentGoderre / Dockerfile
Created March 30, 2017 12:28 — forked from EnzoMartin/Dockerfile
Building & using Node Alpine docker image
# Runtime image
# Following https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md
FROM node:7.7-alpine
# Add tini
RUN apk add --no-cache tini
ENTRYPOINT ["/sbin/tini", "--"]
WORKDIR /usr/src/app/