Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
Chris Crone 2020-09-24 10:09:17 +02:00
Родитель 2f9feb7009
Коммит 334e6939e0
16 изменённых файлов: 117 добавлений и 9 удалений

Просмотреть файл

@ -1,4 +1,20 @@
# syntax = docker/dockerfile:experimental
# Copyright 2020 Docker CLI JavaScript SDK authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM node:12-buster-slim AS base
WORKDIR /src
COPY package.json .

Просмотреть файл

@ -1,3 +1,17 @@
# Copyright 2020 Docker Node SDK authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
export DOCKER_BUILDKIT=1
IMG?=node-sdk-test

2
NOTICE
Просмотреть файл

@ -1,2 +1,2 @@
Docker CLI JavaScript SDK
Copyright 2020 The Authors
Copyright 2020 Docker CLI JavaScript SDK authors

Просмотреть файл

@ -1,5 +1,5 @@
/*
Copyright 2020 The Authors
Copyright 2020 Docker CLI JavaScript SDK authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Просмотреть файл

@ -1,5 +1,5 @@
/*
Copyright 2020 The Authors
Copyright 2020 Docker CLI JavaScript SDK authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Просмотреть файл

@ -1,5 +1,5 @@
/*
Copyright 2020 The Authors
Copyright 2020 Docker CLI JavaScript SDK authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Просмотреть файл

@ -1,5 +1,5 @@
/*
Copyright 2020 The Authors
Copyright 2020 Docker CLI JavaScript SDK authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Просмотреть файл

@ -1,3 +1,19 @@
# Copyright 2020 Docker CLI JavaScript SDK authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/bin/bash
node_modules/.bin/grpc_tools_node_protoc \
--js_out=import_style=commonjs,binary:./src/protos \
--grpc_out=grpc_js:./src/protos \

Просмотреть файл

@ -1,3 +1,17 @@
# Copyright 2020 Docker CLI JavaScript SDK authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/bin/bash
set -e

Просмотреть файл

@ -1,3 +1,19 @@
/*
Copyright 2020 Docker CLI JavaScript SDK authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import * as tar from 'tar';

Просмотреть файл

@ -1,3 +1,19 @@
/*
Copyright 2020 Docker CLI JavaScript SDK authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import { Readable } from 'stream';

Просмотреть файл

@ -1,5 +1,5 @@
/*
Copyright 2020 The Authors
Copyright 2020 Docker CLI JavaScript SDK authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Просмотреть файл

@ -1,5 +1,5 @@
/*
Copyright 2020 The Authors
Copyright 2020 Docker CLI JavaScript SDK authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Просмотреть файл

@ -1,5 +1,5 @@
/*
Copyright 2020 The Authors
Copyright 2020 Docker CLI JavaScript SDK authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Просмотреть файл

@ -1,5 +1,5 @@
/*
Copyright 2020 The Authors
Copyright 2020 Docker CLI JavaScript SDK authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Просмотреть файл

@ -1,3 +1,19 @@
/*
Copyright 2020 Docker CLI JavaScript SDK authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const fs = require('fs');
const path = require('path');
const { spawn } = require('child_process');