Skip to content

Commit

Permalink
docker: use prebuilt image
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Mar 28, 2021
1 parent fe51f82 commit 3c8a09c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 86 deletions.
62 changes: 0 additions & 62 deletions Dockerfile

This file was deleted.

51 changes: 27 additions & 24 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,56 @@
version: '3'

services:
build:
build: .
build: &base
image: rsteube/carapace:0.5.1
command: sh -c 'sh -c "cd /carapace-bin/cmd/carapace && go generate ./... && go build -ldflags=\"-s -w\" ."'
environment:
TARGET: /carapace-bin/cmd/carapace/carapace
volumes:
- '.:/carapace-bin/'
- 'go:/go/'
- 'go:/home/circleci/go/'

bash:
build: .
<<: *base
command: bash
volumes:
- '.:/carapace-bin/'

elvish:
build: .
<<: *base
command: elvish
volumes:
- '.:/carapace-bin/'

fish:
build: .
<<: *base
command: fish
volumes:
- '.:/carapace-bin/'

ion:
<<: *base
command: ion

nushell:
<<: *base
command: nu

oil:
build: .
<<: *base
command: osh --completion-display minimal
volumes:
- '.:/carapace-bin/'

powershell:
build: .
<<: *base
command: pwsh
volumes:
- '.:/carapace-bin/'

xonsh:
build: .
<<: *base
command: xonsh
volumes:
- '.:/carapace-bin/'

zsh:
build: .
<<: *base
command: zsh
volumes:
- '.:/carapace-bin/'

test:
<<: *base
working_dir: /carapace
command: go test -v ./...


volumes:
go:

0 comments on commit 3c8a09c

Please sign in to comment.