Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Clean up theia-endpoint-runtime directory structure
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed May 30, 2019
1 parent ad1e6aa commit 7f634ee
Show file tree
Hide file tree
Showing 20 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion che-theia-init-sources.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sources:
- source: https://github.com/eclipse/che-theia
extensions:
- dockerfiles/theia-endpoint-runtime
- extensions/eclipse-che-theia-plugin-remote
- extensions/eclipse-che-theia-plugin
- extensions/eclipse-che-theia-plugin-ext
- extensions/eclipse-che-theia-terminal
Expand Down
2 changes: 0 additions & 2 deletions dockerfiles/theia-endpoint-runtime/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
theia-plugin-ext
docker-build
node_modules
.browser_modules
lib
*.log
*-app/*
!*-app/package.json
Expand Down
8 changes: 4 additions & 4 deletions dockerfiles/theia-endpoint-runtime/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ ADD https://${GITHUB_TOKEN}:x-oauth-basic@api.github.com/repos/theia-ide/theia/g
ADD https://${GITHUB_TOKEN}:x-oauth-basic@api.github.com/repos/eclipse/che-theia/git/refs/head /tmp/branch_info.json

# Grab dependencies
COPY /package.json /home/workspace/packages/theia-remote/
COPY /docker-build/theia-plugin-remote/package.json /home/workspace/packages/theia-remote/
RUN cd /home/workspace/packages/theia-remote/ && yarn install --ignore-scripts

# Compile
COPY /docker-build/configs /home/workspace/configs
COPY *.json /home/workspace/packages/theia-remote/
COPY /src /home/workspace/packages/theia-remote/src
COPY /docker-build/theia-plugin-remote/*.json /home/workspace/packages/theia-remote/
COPY /docker-build/theia-plugin-remote/src /home/workspace/packages/theia-remote/src
COPY /docker-build/theia-plugin-ext /home/workspace/packages/theia-plugin-ext
COPY /docker-build/theia-plugin /home/workspace/packages/theia-plugin
COPY /tsconfig.json /home/workspace/packages/theia-plugin/tsconfig.json
COPY /docker-build/theia-plugin-remote/tsconfig.json /home/workspace/packages/theia-plugin/tsconfig.json

COPY /etc/package.json /home/workspace
RUN cd /home/workspace/ && yarn install
Expand Down
8 changes: 8 additions & 0 deletions dockerfiles/theia-endpoint-runtime/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ cp -r "${base_dir}/../../extensions/eclipse-che-theia-plugin-ext/webpack.config.
echo "Copying ${base_dir}/../../configs --> ${LOCAL_ASSEMBLY_DIR}/configs"
cp -r "${base_dir}/../../configs/." "${LOCAL_ASSEMBLY_DIR}/configs"

echo "Copying ${base_dir}/../../extensions/eclipse-che-theia-plugin-remote --> ${LOCAL_ASSEMBLY_DIR}/theia-plugin-remote"
mkdir ${LOCAL_ASSEMBLY_DIR}/theia-plugin-remote
cp -r "${base_dir}/../../extensions/eclipse-che-theia-plugin-remote/src/." "${LOCAL_ASSEMBLY_DIR}/theia-plugin-remote/src/"
cp -r "${base_dir}/../../extensions/eclipse-che-theia-plugin-remote/package.json" "${LOCAL_ASSEMBLY_DIR}/theia-plugin-remote"
cp -r "${base_dir}/../../extensions/eclipse-che-theia-plugin-remote/tsconfig.json" "${LOCAL_ASSEMBLY_DIR}/theia-plugin-remote"
cp -r "${base_dir}/../../extensions/eclipse-che-theia-plugin-remote/tsfmt.json" "${LOCAL_ASSEMBLY_DIR}/theia-plugin-remote"
cp -r "${base_dir}/../../extensions/eclipse-che-theia-plugin-remote/tslint.json" "${LOCAL_ASSEMBLY_DIR}/theia-plugin-remote"


init --name:theia-endpoint-runtime "$@"
build
3 changes: 3 additions & 0 deletions extensions/eclipse-che-theia-plugin-remote/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
lib
.idea

0 comments on commit 7f634ee

Please sign in to comment.