File tree Expand file tree Collapse file tree 7 files changed +21
-8
lines changed Expand file tree Collapse file tree 7 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 2
2
VARIANT
3
3
BINDIR
4
4
deps /*
5
- ! deps /bazel /
6
5
! deps /readies /
7
6
! deps /* .py
8
7
examples /js /node_modules /
9
8
examples /js /package-lock.json
10
9
/[0-9 ]* /
10
+ * .tar.gz
11
+ * .tgz
11
12
12
13
# Misc
13
14
.DS_Store
Original file line number Diff line number Diff line change 1
- ARG OS=ubuntu:bionic
1
+ ARG OS=debian:stretch-slim
2
2
3
3
# ----------------------------------------------------------------------------------------------
4
4
FROM ${OS}
5
5
6
6
# ARG ARCH=x64
7
- ARG PT_VER=v1.0.1
7
+ ARG PT_VER=v1.1.0
8
8
9
9
RUN set -ex; apt-get update; apt-get install -y git
10
10
Original file line number Diff line number Diff line change 1
- ARG OS=ubuntu:bionic
1
+ ARG OS=debian:stretch
2
2
3
3
# ----------------------------------------------------------------------------------------------
4
4
FROM ${OS}
5
5
6
- ARG PT_VER=v1.0.1
6
+ ARG PT_VER=v1.1.0
7
7
8
8
RUN set -ex; apt-get update; apt-get install -y git
9
9
Original file line number Diff line number Diff line change
1
+
2
+ .PHONY : repack upload
3
+
4
+ VERSION =1.1.0
5
+
6
+ S3_URL =redismodules/pytorch
7
+
8
+ repack :
9
+ @PT_VERSION=$(VERSION ) ./repack.sh
10
+
11
+ upload :
12
+ @aws s3 cp libtorch-cpu-linux-x86_64-$(VERSION ) .tar.gz s3://$(S3_URL ) / --acl public-read
Original file line number Diff line number Diff line change 15
15
OS=$( python3 $ROOT /deps/readies/bin/platform --os)
16
16
ARCH=$( python3 $ROOT /deps/readies/bin/platform --arch)
17
17
18
- PT_VERSION=1.0.1
18
+ PT_VERSION=1.1.0
19
19
# PT_VERSION="latest"
20
20
21
21
if [[ $OS == linux ]]; then
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- # set -xe
3
+ set -e
4
4
5
5
if [[ " $1 " == " cpu" ]]; then
6
6
GPU=no
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def common_first(self):
21
21
self .pip_install ("wheel" )
22
22
self .pip_install ("setuptools --upgrade" )
23
23
24
- self .install ("git git-lfs python3 cmake ca-certificates curl unzip wget patchelf" )
24
+ self .install ("git git-lfs python3 cmake ca-certificates curl unzip wget patchelf awscli " )
25
25
26
26
def debian_compat (self ):
27
27
self .install ("build-essential" )
You can’t perform that action at this time.
0 commit comments