Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM centos:centos7.9.2009

# root Installations
RUN yum install -y libpng12 make gcc-c++ sudo
RUN yum install -y https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
RUN yum install -y git

# User Creation
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=$USER_UID

RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME

USER $USERNAME

# User Installations
RUN touch /home/vscode/.bashrc

ENV NVM_DIR /home/vscode/.nvm
ENV NODE_VERSION 10.24.1

RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default \
&& npm install -g yarn

CMD ["/bin/sleep", "infinity"]
9 changes: 9 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"dockerComposeFile": "docker-compose.yml",
"service": "env",
"remoteUser": "vscode",
"workspaceFolder": "/workspace",
"forwardPorts": [
9876
]
}
13 changes: 13 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3'

services:
env:
image: johnny94/form-controls-env:v1.0.0
#build:
# context: .
# dockerfile: Dockerfile
volumes:
- ..:/workspace:cached
- $SSH_AUTH_SOCK:/ssh-agent
environment:
- SSH_AUTH_SOCK=/ssh-agent
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ Form Controls
### Setup Steps

1. Install nvm
2. Install node
2. Install node (Tested version: 10.X.Y)
3. Install yarn - https://yarnpkg.com/en/docs/install

### Build

1. Install dependencies - `yarn`
2. Build - `yarn build`
3. Test - `yarn test`

Note: OS library libpng12 maybe needs to be installed in order to make dependency installation succeed.

### Documentation

https://bahmni.atlassian.net/wiki/spaces/BAH/pages/714276866/Creating+a+Sample+Form-Controls+Property+Component
Loading