Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
18685a51
Unverified
Commit
18685a51
authored
Oct 27, 2021
by
moto
Committed by
GitHub
Oct 27, 2021
Browse files
Update smoke test docker image (#1905)
parent
1d3dcdbd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
74 deletions
+10
-74
.circleci/config.yml
.circleci/config.yml
+0
-37
.circleci/config.yml.in
.circleci/config.yml.in
+0
-37
.circleci/smoke_test/docker/Dockerfile
.circleci/smoke_test/docker/Dockerfile
+2
-0
.circleci/smoke_test/docker/build_and_push.sh
.circleci/smoke_test/docker/build_and_push.sh
+8
-0
No files found.
.circleci/config.yml
View file @
18685a51
...
@@ -425,33 +425,6 @@ jobs:
...
@@ -425,33 +425,6 @@ jobs:
conda activate python${PYTHON_VERSION}
conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
python -c "import torchaudio"
smoke_test_docker_image_build
:
machine
:
image
:
ubuntu-1604:201903-01
resource_class
:
large
environment
:
image_name
:
torchaudio/smoke_test
steps
:
-
checkout
-
run
:
name
:
build_docker image
no_output_timeout
:
"
1h"
command
:
|
cd .circleci/smoke_test/docker && docker build . -t ${image_name}:${CIRCLE_WORKFLOW_ID}
-
run
:
name
:
upload docker image
no_output_timeout
:
"
1h"
command
:
|
set +x
export AWS_ACCESS_KEY_ID=${ECR_AWS_ACCESS_KEY}
export AWS_SECRET_ACCESS_KEY=${ECR_AWS_SECRET_ACCESS_KEY}
eval $(aws ecr get-login --region us-east-1 --no-include-email)
set -x
docker tag ${image_name}:${CIRCLE_WORKFLOW_ID} 308535385114.dkr.ecr.us-east-1.amazonaws.com/${image_name}:${CIRCLE_WORKFLOW_ID}
docker tag ${image_name}:${CIRCLE_WORKFLOW_ID} 308535385114.dkr.ecr.us-east-1.amazonaws.com/${image_name}:latest
docker push 308535385114.dkr.ecr.us-east-1.amazonaws.com/${image_name}:${CIRCLE_WORKFLOW_ID}
docker push 308535385114.dkr.ecr.us-east-1.amazonaws.com/${image_name}:latest
unittest_linux_cpu
:
unittest_linux_cpu
:
<<
:
*binary_common
<<
:
*binary_common
docker
:
docker
:
...
@@ -3262,13 +3235,3 @@ workflows:
...
@@ -3262,13 +3235,3 @@ workflows:
python_version
:
'
3.9'
python_version
:
'
3.9'
requires
:
requires
:
-
nightly_binary_windows_conda_py3.9_cu113_upload
-
nightly_binary_windows_conda_py3.9_cu113_upload
docker_build
:
triggers
:
-
schedule
:
cron
:
"
0
10
*
*
0"
filters
:
branches
:
only
:
-
main
jobs
:
-
smoke_test_docker_image_build
.circleci/config.yml.in
View file @
18685a51
...
@@ -425,33 +425,6 @@ jobs:
...
@@ -425,33 +425,6 @@ jobs:
conda activate python${PYTHON_VERSION}
conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
python -c "import torchaudio"
smoke_test_docker_image_build:
machine:
image: ubuntu-1604:201903-01
resource_class: large
environment:
image_name: torchaudio/smoke_test
steps:
- checkout
- run:
name: build_docker image
no_output_timeout: "1h"
command: |
cd .circleci/smoke_test/docker && docker build . -t ${image_name}:${CIRCLE_WORKFLOW_ID}
- run:
name: upload docker image
no_output_timeout: "1h"
command: |
set +x
export AWS_ACCESS_KEY_ID=${ECR_AWS_ACCESS_KEY}
export AWS_SECRET_ACCESS_KEY=${ECR_AWS_SECRET_ACCESS_KEY}
eval $(aws ecr get-login --region us-east-1 --no-include-email)
set -x
docker tag ${image_name}:${CIRCLE_WORKFLOW_ID} 308535385114.dkr.ecr.us-east-1.amazonaws.com/${image_name}:${CIRCLE_WORKFLOW_ID}
docker tag ${image_name}:${CIRCLE_WORKFLOW_ID} 308535385114.dkr.ecr.us-east-1.amazonaws.com/${image_name}:latest
docker push 308535385114.dkr.ecr.us-east-1.amazonaws.com/${image_name}:${CIRCLE_WORKFLOW_ID}
docker push 308535385114.dkr.ecr.us-east-1.amazonaws.com/${image_name}:latest
unittest_linux_cpu:
unittest_linux_cpu:
<<: *binary_common
<<: *binary_common
docker:
docker:
...
@@ -683,13 +656,3 @@ workflows:
...
@@ -683,13 +656,3 @@ workflows:
branches:
branches:
only: nightly
only: nightly
{{ build_workflows(prefix="nightly_", filter_branch="nightly", upload=True) }}
{{ build_workflows(prefix="nightly_", filter_branch="nightly", upload=True) }}
docker_build:
triggers:
- schedule:
cron: "0 10 * * 0"
filters:
branches:
only:
- main
jobs:
- smoke_test_docker_image_build
.circleci/smoke_test/docker/Dockerfile
View file @
18685a51
...
@@ -28,9 +28,11 @@ ENV PATH /opt/conda/bin:$PATH
...
@@ -28,9 +28,11 @@ ENV PATH /opt/conda/bin:$PATH
RUN
conda create
-y
--name
python3.6
python
=
3.6
RUN
conda create
-y
--name
python3.6
python
=
3.6
RUN
conda create
-y
--name
python3.7
python
=
3.7
RUN
conda create
-y
--name
python3.7
python
=
3.7
RUN
conda create
-y
--name
python3.8
python
=
3.8
RUN
conda create
-y
--name
python3.8
python
=
3.8
RUN
conda create
-y
--name
python3.9
python
=
3.9
SHELL
[ "/bin/bash", "-c" ]
SHELL
[ "/bin/bash", "-c" ]
RUN
echo
"source /usr/local/etc/profile.d/conda.sh"
>>
~/.bashrc
RUN
echo
"source /usr/local/etc/profile.d/conda.sh"
>>
~/.bashrc
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.6
&&
conda
install
-y
-c
conda-forge sox
&&
conda
install
-y
numpy
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.6
&&
conda
install
-y
-c
conda-forge sox
&&
conda
install
-y
numpy
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.7
&&
conda
install
-y
-c
conda-forge sox
&&
conda
install
-y
numpy
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.7
&&
conda
install
-y
-c
conda-forge sox
&&
conda
install
-y
numpy
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.8
&&
conda
install
-y
-c
conda-forge sox
&&
conda
install
-y
numpy
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.8
&&
conda
install
-y
-c
conda-forge sox
&&
conda
install
-y
numpy
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.9
&&
conda
install
-y
-c
conda-forge sox
&&
conda
install
-y
numpy
CMD
[ "/bin/bash"]
CMD
[ "/bin/bash"]
.circleci/smoke_test/docker/build_and_push.sh
0 → 100755
View file @
18685a51
#!/usr/bin/env bash
set
-euo
pipefail
datestr
=
"
$(
date
"+%Y%m%d"
)
"
image
=
"pytorch/torchaudio_unittest_base:smoke_test-
${
datestr
}
"
docker build
-t
"
${
image
}
"
.
docker push
"
${
image
}
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment