Last active
March 9, 2020 03:27
-
-
Save mingfang/546ab42b4a1cc072bda6ed4f5e90641a to your computer and use it in GitHub Desktop.
Run phoenix_live_view_example in Eclipse Che
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
metadata: | |
name: phoenix_live_view_example | |
projects: | |
- name: phoenix_live_view_example | |
source: | |
location: 'https://github.com/chrismccord/phoenix_live_view_example.git' | |
type: git | |
branch: master | |
components: | |
- mountSources: true | |
command: | |
- sleep | |
- infinity | |
memoryLimit: 512Mi | |
type: dockerimage | |
alias: elixir | |
image: 'registry.rebelsoft.com/elixir:latest' | |
- id: mingfang/vscode-elixir/latest | |
type: chePlugin | |
- mountSources: true | |
memoryLimit: 300Mi | |
type: dockerimage | |
volumes: | |
- name: pgdata | |
containerPath: /var/lib/postgresql/data | |
alias: postgres | |
image: postgres | |
env: | |
- value: postgres | |
name: POSTGRES_USER | |
- value: postgres | |
name: POSTGRES_PASSWORD | |
- value: postgres | |
name: POSTGRES_DB | |
apiVersion: 1.0.0 | |
commands: | |
- name: 1- mix deps.get | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/phoenix_live_view_example' | |
type: exec | |
command: mix deps.get | |
component: elixir | |
- name: 2- mix ecto.setup | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/phoenix_live_view_example' | |
type: exec | |
command: mix ecto.setup | |
component: elixir | |
- name: 3- npm install --prefix assets | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/phoenix_live_view_example' | |
type: exec | |
command: npm install --prefix assets | |
component: elixir | |
- name: 4- mix phx.server | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/phoenix_live_view_example' | |
type: exec | |
command: mix phx.server | |
component: elixir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment