Skip to content

Commit

Permalink
Merge branch 'release/0.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKahnert committed Jan 17, 2020
2 parents a57d99f + 97fd62c commit 47edafb
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 14 deletions.
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Checklist
- [x] Start a pull request 🤓
- [ ] Checked if a previous provider might fit your needs.
- [ ] All errors/warnings are included in the [`[CheckResult]` output](https://github.com/worldiety/chia/blob/a57d99f65ff0d7b3a7b0e03ebb8e4a6bf910544c/Sources/chiaLib/Internal/CheckProvider.swift#L19).
- [ ] All new dependencies are listet below.
- [ ] All new dependencies are included in the [`Dockerfile`](https://github.com/worldiety/chia/blob/master/Dockerfile).

## New Depedencies
<!--- List all dependencies that are needed for a new CheckProvider -->
- dep1
- dep2
- ...

## Logging Output
### Error Logs:
```
```

### Warning Logs:
```
```
37 changes: 23 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
FROM swift:5.1-bionic
# ================================
# Build image
# ================================
FROM swift:5.1-bionic as builder
LABEL maintainer="[email protected]"

WORKDIR /build-folder
RUN mkdir /bins

# Install chia
###############################################################################

COPY . .
RUN swift build --configuration release && \
mv `swift build --configuration release --show-bin-path`/chia /usr/bin


# Install Dependencies
###############################################################################
mv `swift build --configuration release --show-bin-path`/chia /bins

# SwiftLint
RUN git clone --recurse-submodules https://github.com/realm/SwiftLint SwiftLint && cd SwiftLint && \
# Install Swift Dependencies
## SwiftLint
RUN git clone --recurse-submodules https://github.com/realm/SwiftLint SwiftLint && \
cd SwiftLint && \
swift build --configuration release && \
mv `swift build --configuration release --show-bin-path`/swiftlint /usr/bin
mv `swift build --configuration release --show-bin-path`/swiftlint /bins


###############################################################################

RUN rm -rf /build-folder
# ================================
# Run image
# ================================
FROM swift:5.1-bionic-slim
LABEL maintainer="[email protected]"

WORKDIR /project
VOLUME /project

COPY --from=builder /bins /usr/bin/

# Install Linux Dependencies


RUN rm -rf /build-folder && rm -rf /var/lib/apt/lists/*

CMD chia

0 comments on commit 47edafb

Please sign in to comment.