-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
14 deletions.
There are no files selected for viewing
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
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: | ||
``` | ||
``` |
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
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 |