Skip to content

Instantly share code, notes, and snippets.

@mingfang
Last active March 9, 2020 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mingfang/546ab42b4a1cc072bda6ed4f5e90641a to your computer and use it in GitHub Desktop.
Save mingfang/546ab42b4a1cc072bda6ed4f5e90641a to your computer and use it in GitHub Desktop.
Run phoenix_live_view_example in Eclipse Che
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