# Copyright 2024 PingCAP, Inc.
#
# 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.

# The mutable v8.5.0 tag is also updated by dev builds. Pin the actual
# v8.5.0-cse-110 image so this 8.5 compatibility test keeps a coherent BOM.
FROM hub.pingcap.net/keyspace/tiflash:v8.5.0@sha256:64ee117aa665a7925e029b004ab05f885b91a19c2c3081d7babdc9f377baaa26 AS image-tiflash

FROM hub.pingcap.net/keyspace/tikv-cse:v7.5.0@sha256:a80900bc61b387ea6158c6bf3ebdd3f658f89dc382b81ceb6c7cd8cd6f8f9cf3 AS image-tikv

FROM hub.pingcap.net/keyspace/tidb-cse-cluster-integration-test-base:latest
COPY --from=image-tiflash /tiflash /root/tiflash
COPY --from=image-tikv /tikv-server /root/tikv-server
COPY --from=image-tikv /tikv-worker /root/tikv-worker
COPY ./tidb-server /root/tidb-server
COPY ./r /root/r
COPY ./t /root/t
COPY ./python_testers /root/python_testers
COPY ./config /root/config
COPY --chmod=755 ./docker_scripts /root/docker_scripts
