Skip to content

Commit

Permalink
Merge pull request #13 from cr2007/devcontainer
Browse files Browse the repository at this point in the history
Feat: Adds Dev Container configuration
  • Loading branch information
AdiKsOnDev authored Feb 24, 2024
2 parents 7c162e2 + c880903 commit 3c8b7b8
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "YouTranslate Dev Container",
// Reference: https://github.com/devcontainers/images/tree/main/src/python
"image": "ghcr.io/adiksondev/youtranslate:latest",
"customizations": {
"vscode": {
"extensions": [
"eamodio.gitlens",
"ms-python.python",
"ms-python.pylint",
"vscode-icons-team.vscode-icons",
"njpwerner.autodocstring",
"aaron-bond.better-comments",
"GitHub.copilot",
"GitHub.copilot-chat",
"bierner.github-markdown-preview",
"VisualStudioExptTeam.vscodeintellicode",
"ms-vsliveshare.vsliveshare",
"EditorConfig.EditorConfig",
"dotenv.dotenv-vscode"
]
}
},
"forwardPorts": [5000],
"portsAttributes": {
"5000": {
"label": "Application",
"onAutoForward": "notify"
}
},

"postCreateCommand": "sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt",
"postStartCommand": "pip install -r requirements.txt"
}
6 changes: 6 additions & 0 deletions .devcontainer/welcome.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Welcome to YouTranslate! 💻 You're currently on a custom Dev Container for GitHub Codespaces!

To get started, make sure you have your API Key for the ElevenLab's speech synthesis
ElevenLabs API: https://docs.elevenlabs.io/api-reference/quick-start/introduction

Have fun! 😊
13 changes: 13 additions & 0 deletions .github/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "YouTranslate Dev Container",
// Reference: https://github.com/devcontainers/images/tree/main/src/python
"image": "mcr.microsoft.com/devcontainers/python:3",
"features": {
"ghcr.io/devcontainers/features/git-lfs:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "latest"
}
}
}
34 changes: 34 additions & 0 deletions .github/workflows/devcontainer-build-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Dev Container Build and Push Image

on:
push:
paths:
- '.github/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Convert Repository name to lower case
id: lowercase
run: echo "REPO=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Pre-build Dev Container image
uses: devcontainers/ci@v0.3
with:
subFolder: .github
imageName: ghcr.io/${{ env.REPO }}
cacheFrom: ghcr.io/${{ github.repository }}
push: always
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<img width="100%" src="https://github.com/AdiKsOnDev/YouTranslate/blob/main/Assets/logo.jpg" alt="Logo"/>
</p>
<hr>

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/AdiKsOnDev/YouTranslate)

YouTranslate is a Python script that allows you to create multilingual YouTube videos by cloning the voice of the video's author and translating the video's transcript to a different language. The script then performs a voice-over using the translated script and cloned voice, enabling you to reach a broader audience by offering content in multiple languages!

## :open_file_folder: Installation
Expand Down

0 comments on commit 3c8b7b8

Please sign in to comment.