-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Install #326
Merged
Merged
Docker Install #326
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
3e938b5
Adds the Dockerfile we can use to build the new image
tonysm 0bbe2b8
Adds a workflow that will build and publish the Docker image whenever…
tonysm 63ad63c
Update install instructions
tonysm fd3db36
Tweaks wording
tonysm 136c7ce
Fix default postgres version has been updated
tonysm c3df03d
Remove unused dependencies
tonysm 2eae549
Drop the mention of composer global require
tonysm 4de5754
Adds ncurses package for the cli-menu
tonysm cdeecdf
Fix alpine ARM64 uname is different than macos
tonysm c33a95c
Tweaks the platform check code
tonysm a3978b5
Simplify the platform tests
tonysm a2997fd
Tweaks the README
tonysm f5a786e
Fix tlint
tonysm 290de4f
Adds docs for manually building and publishing the docker image
tonysm 4eb995e
wip
tonysm f3f0ebd
wip
tonysm 58a23c1
Adds a TAKEOUT_CONTAINER env variable inside the container (which we …
tonysm 9aa200e
Tweaks
tonysm a8a6e9a
Merge branch 'main' into tm/docker-install
tonysm 59f3df9
Merge branch 'main' into tm/docker-install
tonysm 049672e
Merge branch 'main' into tm/docker-install
tonysm 0f83b0e
wording
tonysm 13be11c
Adds the Windows alias tweak
tonysm 1fd7157
Wording
tonysm 060a03a
Adds the powershell version of the alias
tonysm 6563066
Bump the actions versions
tonysm 4468c35
Tweaks
tonysm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,55 @@ | ||
name: Docker | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tagInput: | ||
description: 'Tag' | ||
required: true | ||
|
||
release: | ||
types: [created] | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: docker.io | ||
username: ${{ secrets.DOCKER_HUB_USER }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
- name: Determine version tag | ||
id: version-tag | ||
run: | | ||
INPUT_VALUE="${{ github.event.inputs.tagInput }}" | ||
if [ -z "$INPUT_VALUE" ]; then | ||
INPUT_VALUE="${{ github.ref_name }}" | ||
fi | ||
echo "::set-output name=value::$INPUT_VALUE" | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: | | ||
tighten/takeout:latest | ||
tighten/takeout:${{ steps.version-tag.outputs.value }} |
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,18 @@ | ||
FROM php:8.1-cli-alpine | ||
|
||
ENV TAKEOUT_CONTAINER=1 | ||
|
||
COPY --from=docker/buildx-bin /buildx /usr/libexec/docker/cli-plugins/docker-buildx | ||
|
||
# Install the PHP extensions & Docker | ||
RUN apk add --no-cache --update docker openrc ncurses \ | ||
&& docker-php-ext-configure pcntl --enable-pcntl \ | ||
&& docker-php-ext-install -j$(nproc) pcntl \ | ||
&& rc-update add docker boot | ||
|
||
WORKDIR /takeout | ||
|
||
COPY builds/takeout /usr/local/bin/takeout | ||
|
||
ENTRYPOINT ["takeout"] | ||
|
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
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
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
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,26 @@ | ||
<?php | ||
|
||
namespace Tests\Support; | ||
|
||
use App\Shell\DockerTags; | ||
|
||
class FakePlatformDockerTags extends DockerTags | ||
{ | ||
const M1_ARM_PLATFORM = 'arm64'; | ||
const LINUX_ARM_PLATFORM = 'aarch64'; | ||
const INTEL_ARM_PLATFORM = 'x86_64'; | ||
|
||
protected string $fakePlatform; | ||
|
||
public function withFakePlatform(string $platform): self | ||
{ | ||
$this->fakePlatform = $platform; | ||
|
||
return $this; | ||
} | ||
|
||
protected function platform(): string | ||
{ | ||
return $this->fakePlatform; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking forward to being able to bump this 🙌