Skip to content

Commit

Permalink
interim frontend commit checkpoint. not a working state yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelin committed Sep 12, 2019
1 parent 84d3d77 commit e060cc6
Show file tree
Hide file tree
Showing 7 changed files with 3,295 additions and 3,226 deletions.
17 changes: 15 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@ RUN ./install_requirements.sh
COPY requirements.txt requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt

# Copy source
COPY . .
# [production]

# Copy source for prod docker image
# COPY . .

# [frontend setup]
# RUN cd ambianic/webapp/client && \
# npm install --save vue \
# npm install --save-dev parcel-bundler \
# npm install --save axios

# [frontend setup]
# install npm packages
Expand All @@ -37,6 +45,11 @@ COPY . .
# expose http port
EXPOSE 8778

# [development]

# dev only
EXPOSE 1234

# CMD bash
ENTRYPOINT ["bash"]
# CMD [ "ambianic_start_daemon.sh" ]
File renamed without changes.
3 changes: 2 additions & 1 deletion ambianic_start.sh → ambianic-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# docker run -it ambianic/ambianic bash
# python3 ambianic.py
# --rm : remove docker container on exit
docker run -it \
docker run -it --rm \
--name ambianic-dev \
--mount type=bind,source="$(pwd)",target=/workspace \
--publish 1234:1234 \
ambianic/ambianic
3 changes: 3 additions & 0 deletions ambianic/webapp/client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
node_modules
/dist

#local cache
.cache/

/tests/e2e/reports/
selenium-debug.log

Expand Down
17 changes: 17 additions & 0 deletions ambianic/webapp/client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!-- index.html -->

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Parcel</title>
</head>
<body>
<div id="app"></div>

<!-- built files will be auto injected -->
<script src="./src/main.js"></script>
</body>
</html>
Loading

0 comments on commit e060cc6

Please sign in to comment.