Skip to content

Commit 3c8b7b8

Browse files
authoredFeb 24, 2024··
Merge pull request #13 from cr2007/devcontainer
Feat: Adds Dev Container configuration
2 parents 7c162e2 + c880903 commit 3c8b7b8

File tree

5 files changed

+90
-0
lines changed

5 files changed

+90
-0
lines changed
 

‎.devcontainer/devcontainer.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "YouTranslate Dev Container",
3+
// Reference: https://github.com/devcontainers/images/tree/main/src/python
4+
"image": "ghcr.io/adiksondev/youtranslate:latest",
5+
"customizations": {
6+
"vscode": {
7+
"extensions": [
8+
"eamodio.gitlens",
9+
"ms-python.python",
10+
"ms-python.pylint",
11+
"vscode-icons-team.vscode-icons",
12+
"njpwerner.autodocstring",
13+
"aaron-bond.better-comments",
14+
"GitHub.copilot",
15+
"GitHub.copilot-chat",
16+
"bierner.github-markdown-preview",
17+
"VisualStudioExptTeam.vscodeintellicode",
18+
"ms-vsliveshare.vsliveshare",
19+
"EditorConfig.EditorConfig",
20+
"dotenv.dotenv-vscode"
21+
]
22+
}
23+
},
24+
"forwardPorts": [5000],
25+
"portsAttributes": {
26+
"5000": {
27+
"label": "Application",
28+
"onAutoForward": "notify"
29+
}
30+
},
31+
32+
"postCreateCommand": "sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt",
33+
"postStartCommand": "pip install -r requirements.txt"
34+
}

‎.devcontainer/welcome.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Welcome to YouTranslate! 💻 You're currently on a custom Dev Container for GitHub Codespaces!
2+
3+
To get started, make sure you have your API Key for the ElevenLab's speech synthesis
4+
ElevenLabs API: https://docs.elevenlabs.io/api-reference/quick-start/introduction
5+
6+
Have fun! 😊
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "YouTranslate Dev Container",
3+
// Reference: https://github.com/devcontainers/images/tree/main/src/python
4+
"image": "mcr.microsoft.com/devcontainers/python:3",
5+
"features": {
6+
"ghcr.io/devcontainers/features/git-lfs:1": {
7+
"version": "latest"
8+
},
9+
"ghcr.io/devcontainers/features/github-cli:1": {
10+
"version": "latest"
11+
}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Dev Container Build and Push Image
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/**'
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build-and-push:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
id: checkout
18+
uses: actions/checkout@v4
19+
- name: Login to GitHub Container Registry
20+
uses: docker/login-action@v3
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Convert Repository name to lower case
26+
id: lowercase
27+
run: echo "REPO=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
28+
- name: Pre-build Dev Container image
29+
uses: devcontainers/ci@v0.3
30+
with:
31+
subFolder: .github
32+
imageName: ghcr.io/${{ env.REPO }}
33+
cacheFrom: ghcr.io/${{ github.repository }}
34+
push: always

‎README.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<img width="100%" src="https://github.com/AdiKsOnDev/YouTranslate/blob/main/Assets/logo.jpg" alt="Logo"/>
33
</p>
44
<hr>
5+
6+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/AdiKsOnDev/YouTranslate)
7+
58
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!
69

710
## :open_file_folder: Installation

0 commit comments

Comments
 (0)
Please sign in to comment.